Dictionaries: Mad Libs

Classwork: having fun with lists.

Screen Shot 2015-11-02 at 2.13.55 PM

Screen Shot 2015-11-02 at 2.14.33 PM

DIY Mad libs: Write your own mad lib program, YI_MadLibs.py using lists. You might want to have a theme.
Recipe:
1. Create 9 lists for adjectives, adverbs, nouns or plural nouns, verbs, exclamations, numbers, colors, and names. You can prompt the user for name to fill your list of names but all the other lists should already contained the items.

  1. Generate 9 random digits one for each of the lists. The range will depend on the number of items each list has.
  2. Create a sentence with the choice of each list. Make sure you put them in the right order!
  3. Prompt the user whether he or she wants to play again.

NOTE:
Adjectives: describes something (green, squishy, cute)
Adverbs: describes an action (quickly, carefully, silently)
Nouns: person, place or thing (car, house, child)
Plural noun: people, places or things (cars, houses, children)
Verbs: an action (run, jump, swim)
Exclamations: wow!, oh!, yuck!

Something to keep in mind:
Find the words for your lists in such a way that fit “nicely” into your theme sentence.

You can play with this site to get an idea:
Screen Shot 2015-11-02 at 2.07.39 PM