-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.py
More file actions
28 lines (27 loc) · 983 Bytes
/
ex3.py
File metadata and controls
28 lines (27 loc) · 983 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
28
# This line says that I will count the chickens
print("I will now count my chickens:")
# This line prints how many Hens I have
print("Hens", 25 + 30 / 6)
# This line prints how many roosters I have
print("Roosters", 100 - 25 * 3 % 4)
# This line says I will count the eggs
print("Now I will count the eggs:")
# This line counts the eggs
print(3+2+1-5+4 % 2-1/4+6)
# This line asks a question
print("Is it true that 3+2 < 5-7?")
# This line answers the question
print(3+2 < 5-7)
# This line and the one after verify that it is false
print("What is 3 + 2?", 3+2)
print("What is 5 - 7?", 5-7)
# This line is a statement
print("Oh, that's why its False.")
# This line says that I am about to ask more math questions
print("How about some more.")
# This line asks the math questions and the answers
print("Is it greater?", 5 > -2)
print("Is it greater or equal?", 5>+ -2)
print("Is it less or equal?", 5 <= -2)
# Below is the study drill 3. Something that I need ot calculate
print(3+2)