Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago