So I need to get a function that generates a list of letters that increase from a, and end in zzz.
Should look like this:
a
b
c
...
aa
ab
ac
...
zzx
zzy
zzz
The code I currently have is this:
for combo in product(ascii_lowercase, repeat=3):
print(''.join(combo))
However, this does only increase with 3 letters, and the output is more like
a
ab
abc
abcd
...
So, to recap: Function that letters increase, and when it goes past z, it returns to aa. Thanks!
UPDATE:
I am having the same output as before. Here is what I am trying to plug it into:
a = hashlib.md5()
for chars in chain(ALC, product(ALC, repeat=1), product(ALC, repeat=1)):
a.update(chars.encode('utf-8'))
print(''.join(chars))
print(a.hexdigest())
My hash ends up like:
f1784031a03a8f5b11ead16ab90cc18e
but I expect:
415290769594460e2e485922904f345d
Thanks!