It's been a while since I've used Python and needed to do something like this. But what I'd like to do is loop through every unique four-character alphabetical sequence. For example:
aaaa
aaab
...
aaaz
...
abcd
...
zzzz
import string
az = string.ascii_lowercase
for c1 in az:
for c2 in az:
for c3 in az:
for c4 in az:
print(c1 + c2 + c3 + c4)
Is there a more efficient and or prettier way to do this?