Problem Description and Given Info Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways Complete the program to read the needed values from input, that the existing output statement(s) can use to output a short story. Ex If the input is Eric Chipotle 12 cars then the output is Eric went to Chipotle to buy 12 different types of cars

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Problem Description and Given Info
Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and
hopefully funny) ways
Complete the program to read the needed values from input, that the existing output statement(s) can use to output a short story
Ex If the input is
Eric
Chipotle
12
cars
Then the output is
Eric went to Chipotle to buy 12 different types of cars
Transcribed Image Text:Problem Description and Given Info Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways Complete the program to read the needed values from input, that the existing output statement(s) can use to output a short story Ex If the input is Eric Chipotle 12 cars Then the output is Eric went to Chipotle to buy 12 different types of cars
mad_lib.py
1# Here is the first input statement that will
2# prompt the user to enter a first name, and will
3# store the user's input in a variable named first name
4# Make no changes to this Line of code.
5 first name input ("Enter a first name :")
6
7 # Write an input statement that will
8# prompt the user to enter a location, and will
9# store the user's input in a variable named generic Location
10 write your location input statement here>
11
12 # Write an input statement that will
13 # prompt the user to enter a whole number, and will
14 # store the user's input in a variable named whole number
15 <write your whole number input statement here>
16
17 # Write an input statement that will
18 #prompt the user to enter a plural noun, and will
Show Transcribed Text
7 # write an input statement that will
8#prompt the user to enter a location, and will
9# store the user's input in a variable named generic Location
10 <write your location input statement here>
11
12 # Write an input statement that will
13# prompt the user to enter a whole number, and will
14 # store the user's input in a variable named whole number
15 <write your whole number input statement here>
16
Load default template...
17 # Write an input statement that will
18 # prompt the user to enter a plural noun, and will
19 # store the user's input in a variable named plural noun
20 <write your plural noun input statement here>
21
22 # the following print statement will display the story to the user
23 # Make no changes to this line of code.
24 print (first_name, "went to', generic_location, 'to buy', whole number, different types of, plural_noun)
Transcribed Image Text:mad_lib.py 1# Here is the first input statement that will 2# prompt the user to enter a first name, and will 3# store the user's input in a variable named first name 4# Make no changes to this Line of code. 5 first name input ("Enter a first name :") 6 7 # Write an input statement that will 8# prompt the user to enter a location, and will 9# store the user's input in a variable named generic Location 10 write your location input statement here> 11 12 # Write an input statement that will 13 # prompt the user to enter a whole number, and will 14 # store the user's input in a variable named whole number 15 <write your whole number input statement here> 16 17 # Write an input statement that will 18 #prompt the user to enter a plural noun, and will Show Transcribed Text 7 # write an input statement that will 8#prompt the user to enter a location, and will 9# store the user's input in a variable named generic Location 10 <write your location input statement here> 11 12 # Write an input statement that will 13# prompt the user to enter a whole number, and will 14 # store the user's input in a variable named whole number 15 <write your whole number input statement here> 16 Load default template... 17 # Write an input statement that will 18 # prompt the user to enter a plural noun, and will 19 # store the user's input in a variable named plural noun 20 <write your plural noun input statement here> 21 22 # the following print statement will display the story to the user 23 # Make no changes to this line of code. 24 print (first_name, "went to', generic_location, 'to buy', whole number, different types of, plural_noun)
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education