import random def main(): print("WARNING: The following program is specially designed to insult you and hurt your feelings." + "Maybe not at the same time. But trust me, you will get hurt.") print("\n------------------------------------------------------------------------------------------") print("INSULT-O-MATIC") print("\n------------------------------------------------------------------------------------------") insults = ["Your momma is fat.","You are fat.","You are dumb.","Your nose is big.","You smell like pickles."] run = "y" while run == "y": answer = input("\nWould you like to be insulted, punk? ") answer = answer[0].lower() if answer == "y": print("\nPrepare your emotions, an insult is being generated for you and your sad, sad life...\n") print(insults[random.randint(0,4)]) elif answer == "n": print("\nWhy did you even run this program you bozo?\n") else: print("\nYou didn't even say yes or no you dumbo.\n") redo = input("Would you like to run this program again or are you too depressed to continue? ") run = redo[0].lower() main()
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