Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #declares variables
- acturalCost = 0
- #asks player for types of words for the mad lib
- print "Please type a place?"
- placeType= raw_input ("Please type a place?")
- print "Please type a noun?"
- nounType= raw_input ("Please type a noun?")
- print "Please type the name of someone you know?"
- personType= raw_input ("Please type the name of someone you know?")
- print "Please type a verb?"
- verbType= raw_input ("Please type a verb?")
- print "Please type an object?"
- objectType= raw_input ("Please type an object?")
- print "Please type an emotion?"
- emotionType= raw_input ("Please type an emotion?")
- print "Please type a food?"
- foodType = raw_input("Please type a food?")
- print "Please type a number",
- numberType = raw_input("Please type a number")
- #converts string number you put in into a int
- numberType = int(numberType)
- #chances the value of actualCost
- actualCost = numberType * numberType
- #converting the int of actualCost into a string
- actualCost = str(actualCost)
- #prints the mad lib with the words you put into the program
- print "You are going to " + placeType + ", don't forget to bring a " + nounType + "."
- print "When you get to the beach you see " + personType + "."
- print "You walk over and " + verbType + " "+ personType + "."
- print "After talking to " + personType + ", you walk away and see a " + objectType + "."
- print "You are very " + emotionType + " to see a " + objectType + "."
- print "While at the " + placeType + " you decide to buy a " + foodType + " it costs $" + actualCost + "."
Add Comment
Please, Sign In to add comment