I\'m trying to create an algorithm in C# which produces the following output strings:
AAAA AAAB AAAC ...and so on... ZZZX ZZZY ZZZZ
What is the
Simpler Python!
def getWords(length=3): if length == 0: raise StopIteration for letter in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ': if length == 1: yield letter else: for partialWord in getWords(length-1): yield letter+partialWord