# Useless Trivia # # Gets personal information from the user and then # prints true but useless information about him or her name = input("Hi. What's your name? ") age = input("How old are you? ") age = int(age) weight = int(input("Okay, last question. How many pounds do you weigh? ")) print("\nIf poet ee cummings were to email you, he'd address you as", name.lower()) print("But if ee were mad, he'd call you", name.upper()) called = name * 5 print("\nIf a small child were trying to get your attention",) print("your name would become:") print(called) seconds = age * 365 * 24 * 60 * 60 print("\nYou're over", seconds, "seconds old.") moon_weight = weight / 6 print("\nDid you know that on the moon you would weigh only", moon_weight, "pounds?") sun_weight = weight * 27.1 print("On the sun, you'd weigh", sun_weight, "(but, ah... not for long).") input("\n\nPress the enter key to exit.")
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