Skip to content

Instantly share code, notes, and snippets.

@msyvr
Created September 12, 2021 21:44
Show Gist options
  • Save msyvr/91ea38ea5c99de3154483f9fe79a1991 to your computer and use it in GitHub Desktop.
Save msyvr/91ea38ea5c99de3154483f9fe79a1991 to your computer and use it in GitHub Desktop.
# resource: https://youtu.be/8ext9G7xspg
# simple madlibs game: player chooses some words that get inserted into predefined sentence
adj = input("Adjective: ")
verb1 = input("Verb: ")
verb2 = input("Another verb: ")
famous_person = input("Famous person: ")
madlib = f"Computer programming is so {adj}! It makes me so excited because I love to {verb1}. Stay hydrated and {verb2} like you are {famous_person}!"
print(madlib)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment