View the step-by-step solution to:

Question

Make a Mad Libs homework assignment.

Use 5 variables and use 1 of the variables 2 times, and make a

story, 1 of the variables must be a number

Have 1 comment in your code

Make up your own variables and story. I have included an example to give you an idea what I am looking for. The last 3 sentences are created after I have entered 5 variables.

madLibsOutput.JPG

madLibsOutput.JPG

Top Answer

We can write the code as below: #read weather weather = input( 'How is the weather outside: ' ) # read day day = input(... View the full answer

madlibs.JPG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question