import random verbs = ["lacht", "macht", "weint", "schläft", "singt"] nouns = ["Jesus", "das Kind", "Das Werkzeug", "das leben", "Das Trampolin" , "Marius"] parts = ["in der Schule", "im Kopf", "auf dem Haus", "im Bett", "in meinem Baumhaus"] weiter = ["alleine", "zusammen", "traurig" , "leben"] def returnRandomElement(array): zufallszahl = random.randint(0,len(array)-1) return array[zufallszahl] for i in range(10): makeOutput(verbs, nouns, parts, weiter, False) print() for i in range(10): makeOutput(verbs, nouns, parts, weiter, True)