def main():
    # Loop round until the user just gives a <cr> i.e. enter response.
    while True:
        line = raw_input('Words please, <cr> to exit: ')
        words = line.split()
        if len(words) == 0:
            # User wants to quit
            break
        max_len = max([len(w) for w in words])
        for n in range(max_len):
            print '%4d: %s' % (n, ' '.join(randomWords(words, n)))
dataset/ETHPy150Open manahl/PythonTrainingExercises/Intermediate/RandomWords/solution/RandomWords.py/main/original