words = ['apple', 'ball', 'cat', 'dog', 'elf', 'fog', 'go', 'hi', 'ice', 'jug', 'kite'] import random word = random.choice(words) print('Type the following word') print(word) typed = input('') if typed == word: print('Great job!!') else: print('Sorry, you had a mistake. :|')