-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.py
More file actions
30 lines (28 loc) · 1.29 KB
/
Copy pathex3.py
File metadata and controls
30 lines (28 loc) · 1.29 KB
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
#This print information about that chickens are going to be counted
print("I will now count my chickens:")
#Let's count the number of Hens
print("Hens", 25 + 30 / 6)
#Let's count the number of Roosters
print("Roosters", 100 - 25 *3 % 4)
#This print out info that eggs are going to be counted
print("Now I will count the eggs:")
#This prints the number of eggs
print(3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6)
#This prints the question if the left statement is lesser that the right statement
print("Is it true that 3 + 2 < 5 - 7?")
#Prints the output in boolean type - False
print(3 + 2 < 5 - 7)
#Prints the question and answer of simple addition
print("What is 3 + 2?", 3 + 2)
#Prints the question and answer of simple substraciton
print("What is 5 - 7?", 5 - 7)
#Print out the info, revealing the truth behind the statement in line 14 and 16
print("Oh, that's why it's False.")
#Prints out the info about doing some more playing with numbers, because numbers are fun.
print("How about some more.")
#Prints the question if left is greater that right with the result
print("Is it greater?", 5 > -2)
#Prints the question if left is greater or equal that right with the result
print("Is it greater or equal?", 5 >= -2)
#Prints the question if left is lesser or equal that right with the result
print("Is it less or equal?", 5 <= -2)