import math temp = input("What do you think the temperature is outside? ") temp = int(temp) if temp < 70: print("It's a little chilly outside!") if temp > 70 and temp < 80: print("It's getting quite warm outside, we should go to the beach!") if temp > 80 and temp < 90: print("Wow, it is very hot outside, you should out on some sunscreen!") if temp > 90 and temp < 100: print("Oh god, you might not even want to go outside today, it is TOO HOT!") if temp > 100: print("Well, you know where you live, so don't even dare step outside, unless to fry an egg on the sidewalk.")
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