-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathex3.py
33 lines (24 loc) · 960 Bytes
/
ex3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# display that we are about to count chickens
print "I will now count my chickens:"
# displaying our Hens, then Roosters
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
# display the fact that we are about the count the eggs
print "Now I will count the eggs:"
# calculate the amount of eggs
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
# display the formula that we are about to check
print "Is it true that 3 + 2 < 5 - 7?"
# calculate our formula
print 3 + 2 < 5 - 7
# providing the elements of our formula broken down
print "What is 3 + 2?", 3 + 2
print "What is 5 - 7?", 5 - 7
# display the statement regarding what we learned about our formula
print "Oh, that's why it's False."
# display that we are going to try some more less than and greater than statements
print "How about some more."
# calculate these different statements
print "Is it greater?", 5 > -2
print "Is it greater or equal?", 5 >= -2
print "Is it less or equal?", 5 <= -2