print("Welcome to Mad Libs. Follow the prompts to create your own hilarious story.") proper_name1 = raw_input("Enter a name: ") proper_name2 = raw_input("Enter another name: ") noun1 = raw_input("Enter a proper title: ") buisness1 = raw_input("Enter a buisnes: ") place1 = raw_input("Enter place: ") verb1 = raw_input("Enter a verb: ") noun3 = raw_input("Enter a noun: ") noun2 = raw_input("Enter a plural noun: ") noun4 = raw_input("Enter another plural noun: ") num2 = raw_input("Enter a number: ") num1 = raw_input("Enter another number: ") percent1 = raw_input("Enter another number: ") print("Dear %s, it is my pleasure to %s to you today. I am %s and I'm the %s of %s. I have inherited %s " "%s but I need your help to get them to %s. Please send me your %s and the sum of %s %s to get started, " "and I will give you %s percent of my inheritance. Yours truly, %s" % (proper_name1, verb1, proper_name2, noun1, buisness1, num1, noun2, place1, noun3, num2, noun4, percent1, proper_name2))
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question