Question
I am encountering syntax errors when I try to run this program. # Please enter the following: # adjective: happy # animal: zebra # verb:
I am encountering syntax errors when I try to run this program.
# Please enter the following:
# adjective: happy # animal: zebra # verb: sneeze # exclamation: hooray # verb: read # verb: drive
# Your story is:
# The other day, I was really in trouble. It all started when I saw a very # happy zebra sneeze down the hallway. "Hooray!" I yelled. But all # I could think to do was to read over and over. Miraculously, # that caused it to stop, but not before it tried to drive # right in front of my family.
Print("Please enter the following")
adjective = inpu("happy") animal= input("zebra") verb= input("sneeze") exclamation = input("hooray") verb = input("read") verb = input("drive")
Print("The other day madlib")
story = "The other day, I was really in trouble. It all started when I saw a very" adjective + animal + verb1 + "down the hallway." + exclamation + "I yelled. But all" "I could think to do was to" + verb2 + "over and over. Miraculously" "that caused it to stop, but not before it tried to" + verb3 + drive + "right in front of my family. "
print(story)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started