This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Get creative and write your own MadLib


Here's your chance to get creative! Using the things you've learned throughout this challenge, write your own MadLib!

1. Open Wing IDE and create a new file.

2. You may want to plan your story out on paper first - what variables will you need?

3. You may choose to start by writing the code for getting information from the player first, or by writing the story first.

4. If you have trouble with the code, try using Google to figure out your problems. Or, you can ask your questions in the discussion area below.

5. When you're done, copy and paste the code for your MadLib into the discussion area below. That way, other people can play your MadLib!

6. To play someone else's MadLib, copy someone's code from the discussion area below, and paste it into the top-left corner of a new file in Wing IDE. Click the green "play" arrow and play the game in the lower-right corner. Let others know what you think of their MadLibs!

Task Discussion


  • Fer said:

    # -*- coding: iso-8859-15 -*-

    daytime = raw_input("Tell me the moment of the day, morning, evening... ")
    nombre1 = raw_input("Tell me a name, and click enter. ")
    car = raw_input("Tell me a car brand, and click enter. ")
    village = raw_input("Tell me a village name, and click enter. ")
    adjetivo = raw_input("Tell me an adjective, and click enter. ")
    nombre2 = raw_input("Tell me another name, and click enter. ")
    nombre3 = raw_input("Tell me another name, and click enter. ")
    car2 = raw_input("Tell me another car brand, and click enter. ")
    city = raw_input("Tell me a city name, and click enter. ")
    verbo = raw_input("Tell me a gerund verb, and click enter. ")
    verbo2 = raw_input("Tell me a present verb, and click enter. ")

    print "That cold %s, when %s used to wake %s started the old %s " % (daytime,  nombre1, nombre2,  car, )
    print "The %s stages of the village of %s and their local hero %s's %s" % (adjetivo, village, nombre3,  car2, )
    print "were %s for that day " % (verbo, )
    print "Winner would %s everything, including the joy of living in %s" % (verbo2,  city, )

     

     

    That cold morning, when Pepito used to wake Juana started the old Porsche
    The swift stages of the village of Sisteron and their local hero Vichisky's Skoda
    were killing for that day
    Winner would wreck everything, including the joy of living in Mordor
     

    on Nov. 7, 2013, 5:14 a.m.
  • v4lent1na said:

    noun1 = raw_input("Enter a noun: ")
    verb1 = raw_input("Enter a verb, past tense: ")
    noun2 = raw_input("Enter another noun: ")
    verb2 = raw_input("Enter another verb, past tense: ")
    adjective1 = raw_input("Enter an adjective: ")
    narrator = raw_input("Enter I: ")
    action = raw_input("Who told who/what? Enter a suitable action: ")
    adjective2 = raw_input("Enter another adjective: ")
    town = raw_input("Enter 'town': ")
    verb3 = raw_input("Enter another verb, past tense: ")
    verb4 = raw_input("Enter another verb, present tense: ")
     

    print "It was a fine day when Mr. " + noun1 + " and Mr. " + noun2 + ", " + verb1 + "."
    print "When they " +  verb1 + ", " "they " +  verb2 + "."
    print "That's what happened on that day when Mr. " + noun1 + " and Mr. " + noun2 + ", " + verb1 + "."
    print "It was " + adjective1 + " to watch. " + " So " + narrator + " told " + action + "."
    print "It was " + adjective2 + "!"
    print "Everyone in " + town + " talked about it for days!"
    print narrator + " was so " + verb3 + ", " + narrator + " couldn't " + verb4 + "."
    print "This is the little story " + narrator + " told you. Do you believe me? Why sould you?"
    print "The end. Or not."

    on Sept. 19, 2013, 1:32 p.m.
  • Wouter Tebbens said:

    Here's my little game! Hope you like it.

    http://pastebin.com/RUWwxq9T

    on March 26, 2013, 7:18 a.m.
  • drediamond said:

     

    funnyname1 =raw_input("Enter first funny name:")
    funnyname2= raw_input( "Enter second funny name:")
    verb1= raw_input('Enter a verb:')
    noun1=raw_input('Enter a noun:')
    bodypart=raw_input( 'Enter a plural body part:')
    womanname=raw_input("Enter a woman's name:")
    noun2=raw_input ( 'Enter a noun:')
    pluralnoun=raw_input( 'Enter a plural noun:')
    verb2=raw_input( 'Enter a verb:')
    noun3= raw_input( 'Enter a noun:')
    funnyname3 = raw_input( 'Enter a funny name:')
    funnyname4= raw_input('Enter a funny name:')
    occupation= raw_input( 'Enter an occupation:')
     
     
     
     
    print 'Dear Mr. and Mrs.' + funnyname1 + funnyname2 + ':'
    print'Will you let me' + verb1 
    print ' your' + noun1 + ' '
    print '?' + 'Ever since I have laid' + pluralnoun 
    print 'on' + womanname 
    print ',' + 'I have' + verb2 
    print ' madly in love with her. I wish that she will be the' + noun2 
    print 'of my' + pluralnoun 
    print 'and that someday we will See happily ever after. I have a job as a' + occupation 
    print 'that pays $12 a month. I promise to' + verb2 
    print womanname + ' with kindness and respect.' 
    on Dec. 15, 2012, 8:14 p.m.
  • Mars83 said:

    female1 = raw_input("Tell me a female name and click enter: ")
    male1 = raw_input("Tell me a male name and click enter: ")
    noun1 = raw_input("Tell me a noun and click enter: ")
    adjective1 = raw_input("Tell me an adjective and click enter: ")
    number1 = raw_input("Tell me a number (1-5) and click enter: ")
    
    print "The game\n"
    print female1 + " plays a game with " + male1 + "."
    print "The game is named 'The " + adjective1 + " "\
    + noun1 + " game."
    print "To win, " + male1 + " only needs to throw a six."
    print "But he only throws a " + number1 + "."
    print "So it is " + female1 + "'s turn and she"\
    + " throws a six."
    print "She enters the last field in the game, but she "\
    + "hasn't won yet."
    print "To win, she individually has to throw one "\
    + "number three times."
    print "The next three throws are:"
    print 3 * (number1 + " ")
    print female1 + " wins the game and " + male1\
    + " congratulated her."

    on Sept. 11, 2012, 5:46 p.m.
  • saravanan said:

    noun=input("Tell me a noun and click enter:")
    adj1=input("Tell me an adjective and click enter:")
    adj2=input("Tell me an adjective and click enter:")
    verb=input("Tell me a verb and click enter:")

    print("\nOompa Loompa poem\n")

    print("Oompa Loompa doompadee doo")
    print("I've got another "+noun+" for you")
    print("Oompa Loompa doompa dah dee")
    print("If you are "+adj1+" you'll listen to me")
    print("Oompa Loompa Doompadee Dah")
    print("If you're not "+adj2+" you will go far")
    print("You will "+verb+" in happiness too")
    print("Like the Oompa")
    print("Oompa Loompa doompadee do")
     

    on Sept. 10, 2012, 3:36 a.m.
  • jeroenrijckaert said:

    adj1 = raw_input("Please give me an adjective. ")
    person1 = raw_input("Now a person please. ")
    noun = raw_input("Tell me a noun. ")
    adj2 = raw_input("Please give me another adjective. ")

    print " "
    print "Twinkle, twinkle," + adj1 +" bat"
    print "How " + person1 + " wonders what you're at!"
    print "Up above the " + noun + " world you fly"
    print "Like a tea-tray in the " + adj2 + " sky."

    on Aug. 30, 2012, 1:34 p.m.
  • Rob said:

     

    adjective1 = raw_input("Tell me an adjective, and click enter. ")
    noun1 = raw_input("Tell me a noun (plural), and click enter. ")
    noun2 = raw_input("Tell me another noun (plural), and click enter. ")
    adjective2 = raw_input("Tell me another adjective, and click enter. ")
    verb1 = raw_input("Tell me a verb, and click enter. ")
    verb2 = raw_input("Tell me another verb, and click enter. ")
    adjective3 = raw_input("Tell me another adjective, and click enter. ")
    noun3 = raw_input("Tell me another noun (plural), and click enter. ")
    verb3 = raw_input("Tell me another verb, and click enter. ")
     
    print "\n"
    print "The Current State"
    print"\n"
    print "The current state of " + noun1 + " is " + adjective1
    print "It makes me want to " + verb1
    print "Changes are " + adjective2
    print "But when " + noun2 + " " + verb2 +" then it is time to call " + adjective3 + " " + noun3 + " and " + verb3
    on Aug. 26, 2012, 3:40 p.m.
  • amryfitra said:

     

    __author__ = 'amryfitra'
     
     
    class Data:
        def __init__(self):
            """
            """
            self.data= {}
     
        def get_data(self):
            """
            """
     
            self.data['adjective1'] = input("Adjective One = ")
            self.data['adjective2'] = input("Adjective Two = ")
            self.data['noun1'] = input("Noun One = ")
            self.data['noun2'] = input("Noun Two = ")
            return self.data
     
    class View:
        def __init__(self):
            self.data = None
     
        def get_view(self,data):
            self.data = data
            assert self.data['noun1'] is not None
            assert self.data['noun2'] is not None
            assert self.data['adjective1'] is not None
            assert self.data['adjective2'] is not None
     
            a = """
                In this %s %s . %s is %s .
                """%(self.data['adjective1'],self.data['noun1'],self.data['noun2'],self.data['adjective2'])
            print (a)
     
    class controller(View,Data):
        def __init__(self):
            self.data = Data()
            self.view = View()
     
        def run_main(self):
            a = self.data.get_data()
            self.view.get_view(a)
     
    if __name__ == "__main__":
     
        main = controller()
        main.run_main()
    on Aug. 21, 2012, 10:42 a.m.
  • ionut.vlasin said:

    on July 11, 2012, 3:50 a.m.
  • iamomnipotent said:

     

    # This madlib was completely created by myself without borrowing aby others' idea.
     
    yourname = raw_input("Hey dude, before u start playing, tell me ur name first!")
    country1 = raw_input("Do u have a famous country where u can give all ur things up to go there?")
    town1 = raw_input("OK. " + country1 + "---- Well, I think u r quite romantic! So which town in that country would u like to go?")
    activity1 = raw_input("So---- What kind of activity do u plan to do in " + town1 + "?")
    pet1 = raw_input("Imagine u r taken ur pet with u. What is it?")
    adjectivetowardpet = raw_input("Uh! a " + pet1 + "! Is it cute, funny, fury or something? Give me an adjective that describes " + pet1 + " best.")
    adjective1 = raw_input("What's the weather like? Give me an adjective to describe it.")
    adjective2 = raw_input("So what is ur activity gonna be in such a " + adjective1 + " day?")
    adjective3 = raw_input("There is a house in front of u. What does it look like? Give an adjective.")
    celebrity1 = raw_input("U walked into the " + adjective3 + " and met a ultra-famous person!! Who is s/he?")
    foodplural1 = raw_input("After a concise conversation, u and " + celebrity1 + "started eating ur dinner jointly. What are u eating? Give me a plural form of a kind of food.")
    adjective4 = raw_input("What's ur opinion toward " + foodplural1 + "? Give me an adj.")
    numbergreaterthan1 = raw_input("Now I want u to give me a number that is greater than 1! The usage is temporarily confidential~")
    adverb1 = raw_input("An adverb please! Usage also confidential.")
    adverb2 = raw_input("Now, the story is nearly ended! What do u feel when u left the house and said goodbye to " + celebrity1 + "? Give an adv.")
    adjective5 = raw_input("Oh my god! U forgot what u wanna do originally. Perhaps it was because the excitement when u met " + celebrity1 + ". What do you feel? An adj.")
    liveplace = raw_input("Although u feel " + adjective5 + ", u must go back to ur live place because it is late. Where do u live? This is the last question!")
     
    print ("Now let's see the story! Here we go~")
    print (yourname + " always want to go to " + town1 + " in the country " + country1 + ".")
    print ("One day, " + yourname + " finally got a chance to do it.")
    print ("S/he called his/er " + adjectivetowardpet + pet1 + " and left the house.")
    print ("They planned to " + activity1 + " first.")
    print ("The weather today in " + town1 + " is quite " + adjective1 + ". That way, his/er activity shall be " + adjective2 + ".")
    print ("Suddenly, they discovered a " + adjective3 + "house in front of them.")
    print ("They walked into that house and saw " + celebrity1 + "!!!!!!")
    print ("They were so excited, so they sat down and began eating dinner with " + celebrity1 + ".")
    print ("They ate " + foodplural1 + ", and they were very " + adjective4 + "!")
    print ("Then, " + celebrity1 + " said to " + yourname + " that s/he's got " + numbergreaterthan1 + " dollars for you!")
    print ("S/he took that " + adverb1 + " and walked out of the house " + adverb2 + ".")
    print ("Then, s/he became real " + adjective5 + " because s/he forgot his/er original activity " + activity1 + "!")
    print ("However, s/he must got back to his/er live place " + liveplace + "because it's not early.")
    on July 7, 2012, 11:25 a.m.
  • iamomnipotent said:

     

    adjective1 = raw_input("Tell me the weirdest adjective u can think of!")
    adjective2 = raw_input("Great job! Now let's move on to the next adj.")
    name1 = raw_input("D'ya know anything about a famous person?")
    verbwithing1 = raw_input("Tell me what is s/he doing! Use a verb plus ing.")
     
    print ("OK then! Now let's see what is the story u made.")
    print ("The weather today is so fucking " + adjective1)
    print ("I get into a " + adjective2 + "house!")
    print ("Wow!! See who is " + verbwithing1 + " here----" + name1 + "!!!") 
    on July 7, 2012, 10:41 a.m.
  • Justin Ward said:

     

    #The text was borrowed from http://www.eduplace.com/tales/ as I have no imagination
     
    #Get input
    first_name = raw_input("Enter your first name, and press enter. ").capitalize()
    place = raw_input("Enter a place, and press enter. ").capitalize()
    adj1 = raw_input("Enter an adjective, and press enter. ").lower()
    verb1 = raw_input("Enter a verb ending with ing, and press enter. ").lower()
    famous = raw_input("Enter the name of a famous person, and press enter. ").capitalize()
    friend = raw_input("Enter the name of a friend, and press enter. ").title()
    verb2 = raw_input("Enter a present tense verb, and press enter. ").lower()
    room = raw_input("Enter the name of a room, and press enter. ").capitalize()
    instrument = raw_input("Enter the name of a musical instrument, and press enter. ").capitalize()
     
    #Display story
    print "\nAll A Dream\n"
    print "I fell asleep yesterday listening to an old album that my mum had.\nI really enjoyed it, though I had a weird dream.\nIt was kind of like one of the old songs.\n\n"
    print "I've been workin' in " + place + ","
    print "All the " + adj1 + " day."
    print "I've been workin' in " + place + ","
    print "Just to pass the time away." 
    print "Don't you hear the whistle " + verb1 + "?"
    print "Rise up so early in the morn."
    print "Don't you hear " + famous + " shouting"
    print friend + ", " + verb2 + " your horn?\n"
    print friend + ", won't you " + verb2 + ","
    print friend + ", won't you " + verb2 + ","
    print friend + ", " + verb2 + " your horn?"
    print friend + ", won't you " + verb2 + ","
    print friend + ", won't you " + verb2 + ","
    print friend + ", " + verb2 + " your horn?\n"
    print "Someone's in the " + room + " with " + friend + "."
    print "Someone's in the " + room + ", I know."
    print "Someone's in the " + room + " with " + friend
    print "Strumming on the old " + instrument + ".\n"
     
    print "It was the weirdest dream I've had in a long time!"
    on Feb. 18, 2012, 3:15 a.m.
  • Captain_Ahab said:

     

    print('Remember that one time...? (A madlib adventure)\n')
    noun1=input('Lets start building our madlib.  First type in a noun, then click enter.\n')
    verb1=input('Now I need a verb that ends in ing.  Push enter after you have typed it.\n')
    adjective1=input('Now I need an adjective.  Dont forget to push enter afterwards!\n')
    verb2=input('Now give me a past tense verb.\n')
    noun2=input('Another noun please.\n')
    adjective2=input('Another adjective now.\n')
    noun3=input('Another noun.\n')
    noun4=input('Now I need a proper noun.\n')
    noun5=input('Another noun.\n')
    noun6=input('Another noun.\n')
    verb3=input('Now I need a verb.\n')
    noun7=input('One more noun please.\n')
    number1=input('Almost done now.  I need a number\n')
    number2=input('Last input needed.  Give me a number and I will show you your madlib!\n')
    print('Remember that one time...?  Authored by you!\n')
    print('Remember that one time at the '+noun1+'?  Well, we had been '+verb1+' for a while, and it was getting '+adjective1+'.')
    print('I had only '+verb2+' on the ice once though!  Anyways, we bought a '+noun2+' to share -- which was really, really '+adjective2+'.  I almost burned my '+noun3+' off!')
    print('Then we walked over to '+noun4+' and your '+noun5+', who were standing by the '+noun6+'.')
    print('After discussing what we could do afterwards, you asked me if I wanted to '+verb3+' around the '+noun7+' '+number1+' or '+number2+' more times.  I did.')
    on Feb. 15, 2012, 5:52 a.m.
  • Judith Elaine Bush said:

     

    name = raw_input('What\'s your name? ')

    print 'Cool. Good to meet you,  '+name+'. I\'m going to ask you for some words to help me tell a story.'

    noun = raw_input('Give me a noun: ').capitalize()

    verb = raw_input('And now a verb: ').capitalize()

    adj1 = raw_input('An adjective: ').lower()

    advb1 = raw_input('An adverb: ').lower()

    preposition = raw_input('A preposition: ').lower()

    verbed = raw_input('A verb in the past tense, like \"jumped\": ').lower()

    task = raw_input('A gerund (something ending in \"ing\"): ').lower()

    advb2 = raw_input('How about another adverb: ').lower()

    advb3 = raw_input('And another: ').lower()

    units = raw_input('Something specific, now. Name a unit of measure as a plural: ').lower()

    hobbiest = raw_input('A noun for a person who has a hobby: ').capitalize()

    occupation = raw_input('A noun for a person who has a specific occupation: ').lower()

     

    print 'Ok, here goes....\n\nMadly Agile\nby '+name+' and judielaine.\n'

    print name +' showed up for the sprint planning meeting with five ' + units + ' to spare. The ' + occupation + ' was already there,'

    print 'and had the most ' +adj1 + ' story on the board: \"As a ' + hobbiest + ', I want to ' + verb + ' the ' + noun+ '.\"'

    print name +' '+ verbed + '. We had tried to explain this to the ' + occupation + ' before. We all knew the aphorism: you might want '

    print 'the '+ task + ' done ' + advb1 + ', ' + advb2 + ', and ' + advb3 + ', but you only get two. But when a '+ noun.lower() +' is involved, all bets are ' + preposition +'.'

     

    What's your name? bubba

    Cool. Good to meet you,  bubba. I'm going to ask you for some words to help me tell a story.

    Give me a noun: tree

    And now a verb: run

    An adjective: cool

    An adverb: friendly

    A preposition: over

    A verb in the past tense, like "jumped": climbed

    A gerund (something ending in "ing"): cowing

    How about another adverb: cheaply

    And another: lightly

    Something specific, now. Name a unit of measure as a plural: Celsius

    A noun for a person who has a hobby: collector

    A noun for a person who has a specific occupation: toll keeper

    Ok, here goes....

     

    Madly Agile

    by bubba and judielaine.

     

    bubba showed up for the sprint planning meeting with five celsius to spare. The toll keeper was already there,

    and had the most cool story on the board: "As a Collector, I want to Run the Tree."

    bubba climbed. We had tried to explain this to the toll keeper before. We all knew the aphorism: you might want

    the cowing done friendly, cheaply, and lightly, but you only get two. But when a tree is involved, all bets are over.

    on Feb. 1, 2012, 9:14 p.m.
  • gnuisance said:

    title = 'p2pu madlib program'.title()
    verb = raw_input('Enter a verb: ')
    food1 = raw_input('Enter a food: ')
    food2 = raw_input('Enter another food: ')
    day = raw_input('Enter a day of the week: ').capitalize()
    beverage = raw_input('Enter your favorite beverage: ')
    print """%s

    While writing a madlib my stomach started to %s. So I went to
    the kichen to make something to eat.  But all I had was %s and
    left-over %s from last %s.  Faced with my choices I poured a glass
    of %s and finished my madlib.""" % (title,verb, food1, food2, day, beverage)

    on Jan. 30, 2012, 8:26 p.m.
  • Shannon said:

    Oh, snap. I guess I need to install 2.x if I want to play the other cool mad libs. Or is there an online interpreter that would let me run these? I tried Google's Appspot and Ideone, but apparently the versions didn't match...

    on Jan. 20, 2012, 1:19 p.m.
  • Shannon said:

     

    Um, I got carried away. I love me some mad libs.
    This is in 3.2.
     
    #filename: MadLibs.py
     
    #greet the player
    first_name = str (input ('What\'s your name? Please type it and hit enter.\n'))
    print ('Cheers, ' + first_name + '!')
     
    print ('Hey ' + first_name + ', let\'s make a Mad Lib!\n')
     
    #take player input for words to be used in the mad lib
    place = str (input ('Type in a place. '))
    day_of_week = str (input ('Now a day of the week. '))
    term_of_friendship = str (input ('Now something you\'d call a friend. '))
    adjective_1 = str (input ('Now an adjective. '))
    number_1 = str (input ('Now an amount. '))             
    adjective_2 = str (input ('Another adjective. '))
    verb_ending_in_ing_1 = str (input ('A verb ending in \"ing\". '))
    verb_ending_in_ing_2 = str (input ('Another verb ending in \"ing\". '))
    outdoor_noun_1 = str (input ('Something you find outdoors? '))
    emotional_state_1 = str (input ('A feeling? '))
    number_2 = str (input ('A number? '))
    number_3 = str (input ('Another amount? '))       
    adjective_3 = str (input ('Another adjective. '))
    article_of_clothing_plural = str (input ('An article of clothing, plural? '))
    verb_ending_in_ing_3 = str (input ('Another verb ending in \"ing\". '))
    verb_ending_in_ing_4 = str (input ('Another verb ending in \"ing\". '))
    verb_ending_in_ing_5 = str (input ('Another verb ending in \"ing\". '))
    adverb_1 = str (input ('Now an adverb. '))
    adjective_4 = str (input ('Another adjective. '))
    occupation = str (input ('Now an occupation. '))
    company = str (input ('Now a company. '))
    emotional_state_2 = str (input ('Another feeling. '))
    adjective_3 = str (input ('Another adjective. '))
    adjective_5 = str (input ('Adjective. '))
    verb_ending_in_ed_1 = str (input ('Verb, past tense? '))
    verb_ending_in_ed_2 = str (input ('Another verb, past tense? '))
    verb_1 = str (input ('Verb. '))
    verb_2 = str (input ('Another verb. '))
    verb_3= str (input ('Another verb. '))
    emotional_state_3 = str (input ('Another feeling. '))
    noun_1 = str (input ('Noun. '))
    motion_verb_ending_in_ed_3 = str (input ('Past tense verb? '))
    outdoor_noun_2 = str (input ('Something you find outdoors? '))
     
    verb_ending_in_ing_6 = str (input ('Another verb ending in \"ing\". '))
    noun_2 = str (input ('Noun. '))
    adjective_6 = str (input ('Adjective. '))
     
    #combine input words with fixed text to create mad lib
    print ('''\n\nGood day, ''' + first_name + ''', did you go down to Occupy ''' +
    place + ''' last ''' + day_of_week + '''?
    No? ''' + term_of_friendship + ''', it was completely ''' + adjective_1 + '''.
     
    At first, only ''' + number_1 + ''' people were there,
    and they were pretty ''' + adjective_2 + ''', mostly just '''
    + verb_ending_in_ing_1 + ''' and ''' + verb_ending_in_ing_2 + ''' around the ''' + outdoor_noun_1 + ''',
    but everybody still seemed fairly ''' + emotional_state_1 + '''.
    By ''' + number_2 + ''' o’clock though, another ''' + number_3 + ''' more people showed up,
    and every one of them had on ''' + adjective_3 + ''' ''' + article_of_clothing_plural + '''.
    They all started ''' + verb_ending_in_ing_3 + ''' and ''' + verb_ending_in_ing_4 + ''',
    and even ''' + verb_ending_in_ing_5 + ''' with each other. 
    It was ''' + adverb_1 + ''' ''' + adjective_4 + '''.
     
    I talked to one guy, who is a ''' + occupation + ''' at ''' + company + ''',
    who said he had never felt so ''' + emotional_state_2 + ''' to be a part of something so ''' +
    adjective_3 + ''' and ''' + adjective_5 + '''.
    He was so into it, he ''' + verb_ending_in_ed_1 + ''' and ''' + verb_ending_in_ed_2 +
    ''' until he had to ''' + verb_1 + '''.
    He said that if we don’t ''' + verb_2 + ''' today, we might ''' + verb_3 + ''' tomorrow.
     
    Well, as you can imagine, I was so ''' + emotional_state_3 + '''
    that I promptly took my ''' + noun_1 + ''', ''' + motion_verb_ending_in_ed_3 + '''
    over to the nearest ''' + outdoor_noun_2 + ''', and started ''' + verb_ending_in_ing_6  + '''.
    ''' + first_name + ''', you have to go with me tomorrow. 
    Be sure to pack your ''' + noun_2 + '''. It’s gonna be ''' + adjective_6 + '''. ''')
    on Jan. 20, 2012, 1:17 p.m.
  • Ken Doman said:

    # Madlibs Project: The Gettysburg Undressed
    # Author: Ken Doman
    # Date: January 13, 2012
    # orignally taken from the first line of the Gettysburg Address


    import random

    pnoun = []
    snoun = []
    # get nouns
    for i in range(4):
        pnoun.append(raw_input("Please give me a plural noun: "))
        snoun.append(raw_input("Please give me a singular noun: " ))
    random.shuffle(pnoun)
    random.shuffle(snoun)
    # get adjectives
    adjective = []
    for i in range(2):
        adjective.append(raw_input("Please give me an adjective: "))
    random.shuffle(adjective)
    # get verbs
    verb = []
    for i in range(3):
        verb.append(raw_input("Please give me a past-tense verb: "))
    random.shuffle(verb)
        
    words = (pnoun[0], pnoun[1], pnoun[2], snoun[0], adjective[0], snoun[1], verb[0], snoun[2], verb[1], snoun[3], pnoun[3], verb[2], adjective[1])
    # and out comes the results
    print """
    Four %s and seven %s ago our %s brought forth upon this
    %s, a %s %s, %s in %s, and %s to
    the %s that all %s are %s %s.
    """ % words
     

    on Jan. 13, 2012, 3:47 p.m.
  • Anonym said:

    #This is a parody of the well known Ozymandias phrase.
    
    name = raw_input("Tell me your name: ")
    pluralNoun = raw_input("Give me a plural noun: ")
    verb1 = raw_input("Now give me a verb: ")
    singularNoun = raw_input("And anouther noun, singular this time: ")
    adjective = raw_input("This time, give me an adjective: ")
    verb2 = raw_input("And to close this, another verb: ")
    
    print "I'M THE KING OF.... Uhh...\n"
    print "My name is " + name + ","
    print "King of " + pluralNoun + "."
    print verb1 + " upon my " + singularNoun + ", ye " + adjective + ","
    print "and " + verb2 + "!"

    on Jan. 12, 2012, 3:32 p.m.