I would like to know how in Python I can iterate through a set of conditions.
- string that has 2-6 lower alpha or numeric characters
- the first character is always a number
So a short progression would be:
1a
1b
1c
...
1aa
1ab
1ac
...
2aaa
2aab
2aac
etc.
A horrible example that can do the first two is
##Loop through 1a-z0-9
start = '1'
l = 97
while l < 123:
num = start
num += chr(l)
print num
l += 1
l = 48
while l < 58:
num = start
num += chr(l)
print num
l += 1
I found itertools but can't find good examples to go off of.