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 a program that reads four values from input and stores the values in variables first_name, generic_location, whole_number, and plural_noun. The program then uses the input values to output a short story. The first input statement is provided in the code as an example.
Notes: To test your program in the Develop mode, pre-enter four values (in separate lines) in the input box and click the Run program button. The auto-grader in the Submit mode will test your program with different sets input of values.
Ex: If the input values are:
Eric
Chipotle
12
cars
then the program uses the input values and outputs a story:
Eric went to Chipotle to buy 12 different types of cars
Ex: If the input values are:
Brenda
Philadelphia
6
bells
then the program uses the input values and outputs a story:
Brenda went to Philadelphia to buy 6 different types of bells
440398.3010194.qx3zqy7
LAB ACTIVITY
1.9.1: LAB: Input: Mad Lib
0 / 10
main.py
Load default template...
Develop mode
Submit mode
Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box.
Enter program input (optional)
If your code requires input values, provide them here.
Run program
Input (from above)
main.py
(Your program)
Output (shown below)
Program output displayed here
Coding trail of your work
What is this?
10/29
S
-
min:1