I want to generate all strings from "aaa" down to "zzz". Currently, I'm doing this using 3 for loops, is there a more pythonic way of doing this?
key_options = []
for n1 in range(ord('a'), ord('z')+1):
for n2 in range(ord('a'), ord('z')+1):
for n3 in range(ord('a'), ord('z')+1):
key_options.append(chr(n1) + chr(n2) + chr(n3))