Skip to content

Instantly share code, notes, and snippets.

@s-kganz
Created April 12, 2020 17:36
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 s-kganz/e9e1dae222c7c425961ccdc41b38fcad to your computer and use it in GitHub Desktop.
Save s-kganz/e9e1dae222c7c425961ccdc41b38fcad to your computer and use it in GitHub Desktop.
Starter code for Mad Libs in Python
# Get input from the user
noun = input("Give me a noun: ")
# Add the input to a template
line1 = "It's dangerous to go alone. Here, take this {}!".format(line1)
# Print the formatted template
print(line1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment