Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Playing around with Py and MadLibs | fill in the gaps to create a story
- 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."
- # this is an exercise for p2pu madlib challenge task 5
- # by filling in the required fields you create a story. It's pretty cool.
- # why not try it out?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement