-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.py
More file actions
21 lines (13 loc) · 701 Bytes
/
ex3.py
File metadata and controls
21 lines (13 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
print "I will now count my chickens:"
print "Hens", 25 + 30 / 6 # adds then divides
print "Roosters", 100 - 25 * 3 % 4 # subtract then multiply
print "Now I will count the eggs."
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6 # adds everything
print "Is that true that 3 + 2 < 5 - 7?" # tells true or false
print "What is 3 + 2?", 3 + 2 # adds set numbers
print "What is 5 - 7?", 5 - 7 # subtracts set numbers
print "Oh, that's why it's False."
print "How about one more."
print "Is it greater?", 5 > -2 # answers < or > true or false
print "Is it greater or equal?", 5 >= -2 # aswers < or > true of false
print "Is it less or equal?", 5 <= -2 # answers < or > true or false