Day 3 - Making a Basic Mad Libs Story

In this project, we'll cover the use of variables with formatted strings – also called f-strings – to create a fun story.

Finished Code

strNoun1 = "dog"
strAdjective1 = "red"
strNoun2 = "airplane"
strVerb1 = "running"
strVerb2 = "paint"
strVerb3 = "flew"
strAdjective2 = "happy"

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)