#Heading 1 print "Chicken Head Count" #Displays item and evaluates answer. print "Hens:", 25 + 30 / 6 print "Roosters:", 100 - 25 * 3 % 4 print "Hatchlings:", 2 + 15 / 3 print "Eggs:", 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6 #Heading 2 print "Numbers" #Opening Sentence print "Is it true that 3 + 5 < 7 * 8 / 9?" print 3 + 5 < 7 - 5 print "Woops, Wrong! :P" #Rest of Questions print "Would you like to do some more?" print "Is it greater?", 5 > -2 print "Is it greater or equal?", 5 >= -2 print "Is it less or equal?", 5 <= -2
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