Question: In this programming exercise, you ll write two mad lib program, that act as the host of the game. The program will take as argument
In this programming exercise, youll write two mad lib program, that act as the host of the game. The program will take as argument various strings words and then it will return a single string with a story using these words. Please provide sample code and please show the passed output test cases.
Move Mad Lib
The first program should be named move. py The outline of the story is shown below:
decided to move from their apartment on th
to a condo on They called their friend
for help. However, they could not fit into
the moving truck, so they had to rent a
in order to move it
The locations with indicate that these should be replaced with a word specified by the computer user. Your
createstory function should take arguments, and fill them in to the story. An example of running the program would look
like so:
def main:
personone "Janet"
streetname "Loopdydoo Avenue"
persontwo "Richard"
objectname "Christmas tree"
vehicle "Horsedrawn carriage"
adjective ffroad"
story createstorypersonone, streetname, persontwo,
objectname, vehicle, adjective
printstory
main
Janet decided to move from their apartment on th
to a condo on Loopdydoo Avenue. They called their friend Richard
for help. However, they could not fit Christmas tree into
the moving truck, so they had to rent a Offroad Horsedrawn carriage
in order to move it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
