money = 5 income = 34 if income > money: print "You have a large income" elif income < money: print "You have a lot of money" else: print "Whatever" gifts = 20 cards = 89 if gifts < cards: print "You don't have a lot of gifts" elif cards > gifts: print "Wow I wish I had a lot of gifts" else: print "Mula" frenchfries = 12 burgers = 45 if burgers < frenchfries: print "Good you shouldn't be eating that much!" elif frenchfries > burgers: print "You must be very fat!" else: print "What's gucci" icecream = 1 cookies = 3 if icecream > cookies: print "Cool" elif cookies > icecream: print "Wow" else: print "It's just what happens" school = 5 cmitsouth = 2 if school > cmitsouth: print "That's rad" elif cmitsouth > school: print "it's just what it is" else: print "boring"
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