Day 4 - Mad Libs With User Input

In this video, we cover the use of the input( ) function to gather input from users, storing it variables and then inserting into a string.

Finished Code

strNoun1 = input("Enter a noun: ")
strAdjective1 = input("Enter an adjective: ")
strNoun2 = input("Enter a noun: ")
strVerb1 = input("Enter a verb ending in 'ing': ")
strVerb2 = input("Enter a verb: ")
strVerb3 = input("Enter a verb: ")
strAdjective2 = input("Enter an adjective: ")

strStory = f"""Yesterday, I went to the {strNoun1} and saw the most {strAdjective1} {strNoun2}!
It was {strVerb1} around like it had no care in the world.
I decided to {strVerb2} it to see what would happen, but it just {strVerb3} away.
What a {strAdjective2} day it turned out to be!"""

print(strStory)