Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,23 @@ def HelloWorld():
return

def HomePlanet():
planet = input("What is your home planet? Inster here: ")
print(planet + ", I heard the weather sucks there.")
planet = input("What is your home planet? Enter here: ").lower()
responses = {
"earth": "Good choice.",
"venus": "I heard the weather is nice there.",
"mars": "I heard they have cool machines over there.",
"jupiter": "I heard the weather sucks there.",
"mercury": "Do you have a good view of the sun there?",
"saturn": "Is it true that you can surf on the rings?",
"uranus": "Do they have Uranium there?",
"neptune": "Is it true that it has a sub-surface ocean?"
}
if planet in responses:
print(responses[planet])
elif planet == "pluto":
print("I don't know how to tell you this...")
else:
print("What? Where even is that?")
return

HelloWorld()
Expand Down