Created
April 12, 2020 17:36
-
-
Save s-kganz/e9e1dae222c7c425961ccdc41b38fcad to your computer and use it in GitHub Desktop.
Starter code for Mad Libs in Python
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
# 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