Created
April 20, 2017 14:22
-
-
Save spheppner/dfcc625a88c92ba7e76eaf6d885df217 to your computer and use it in GitHub Desktop.
Satzgenerator für lustige Sätze (= für Kinder)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# erfinde mehr Wörter! | |
freunde = ["Simon", "Paolo", "Paul", "Hannes", "Cooli", "Elias", "Bieny"] | |
orte = ["im Kino", "am Spielplatz", "im Uboot", "im Pilz", "im Studio", "am Arbeitsplatz"] | |
# verben: wer macht was mit wem | |
verben = ["küsst", "schlägt", "beißt", "bewundert", "beschimpft", "besabbert"] | |
adjektive = ["ehrenhaft", "großartig", "brutal", "schlampig", "aufgeregt", "nervös", "unausgeschlafen"] | |
# probiere range(1,5) | |
for x in range(6): | |
wer = random.choice(freunde) | |
wo = random.choice(orte) | |
was = random.choice(verben) | |
wie = random.choice(adjektive) | |
wen = random.choice(freunde) | |
print("Satz nr.",x,end=" : ") | |
print("{} {} {} {} {}.".format(wer, was, wie, wen, wo)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment