import random abc = [] for i in range(97, 123): abc.append("%c" % i) for _ in range(20): print(random.choice(abc), end='') print()