Skip to content

Instantly share code, notes, and snippets.

@spheppner
Created April 20, 2017 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spheppner/dfcc625a88c92ba7e76eaf6d885df217 to your computer and use it in GitHub Desktop.
Save spheppner/dfcc625a88c92ba7e76eaf6d885df217 to your computer and use it in GitHub Desktop.
Satzgenerator für lustige Sätze (= für Kinder)
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