This is a very “basic” example:
chars="abcdefghijklmnopqrstuvwxyz"
my_list = []
for c1 in chars:
for c2 in chars:
for c3 in chars:
for c4 in chars:
my_list.append(c1+c2+c3+c4)
print(my_list)
solved Go from aaaa to zzzz python [closed]