-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.py
More file actions
27 lines (20 loc) · 657 Bytes
/
ex3.py
File metadata and controls
27 lines (20 loc) · 657 Bytes
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
print("I will now count my chickens:")
print("Hens", 25 + 30 / 6)
print("Roosters", 100 - 25 * 3 % 4)
print("Now I will count the eggs:")
print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6)
# will print 6.75 eggs
print("Is it true that 3 + 2 < 5 - 7?")
print(3 + 2 < 5 - 7)
## prints 5 < 2
print("What is 3 + 2?", 3 + 2)
print("What is 5 - 7?", 5 - 7)
print("Oh, that's why it's False.")
# 5 is more than 2
print("How about some more.")
print("Is it greater?", 5 > -2)
print("It is greater than!")
print("Is it greater or equal?", 5 >= -2)
print("Still greater than!")
print("Is it less or equal?", 5 <= -2)
print("This is false! 5 is greater than 2 for sure!")