# ex3.py 数字和数学

# + plus
# - minus
# * asterisk
# / slash
# % percent 取模——取余数
# < less-than
# <= less-than-equal
# > greater-than
# >= greater-than-equal


# PEMDAS = PE(M&D)(A&S)
# Parentheses ()
# Exponents ** （ ^ = XOR )
# Multiplication *
# Division /
# Addition + 
# Subtraction -


# explain what to do next: count chickens
print("I will now count my chickens:")

# print the count of hens
print("Hens", 25.0 + 30.0 / 6)
# print the count of roosters
print("Roosters", 100 - 25.0 * 3 % 4)

# tips that the count of eggs
print("Now I will count the eggs:")

# do some calculating about the number of eggs
print(3 + 2 + 1 - 5 + 4 % 2 - 1.0 / 4 + 6)

# compare 3+2 and 5-7 
print("Is it true that 3 + 2 < 5 - 7?")

# print the comparative result: False
print(3 + 2 < 5 - 7)

# calculate the answer of 3+2
print("What is 3 + 2?", 3 + 2)
# calculate the answer of 5-7
print("What is 5 - 7?", 5 - 7)

# print the answer why 3+2 is not less than 5-7
print("Oh, that's why it's False.")

# print more comparision
print("How about some more.")

# the result whether 5 is greater than -2: True
print("Is it greater?", 5 > -2)
# whether 5 is greater than or equal to -2: True
print("Is it greater or equal?", 5 >= -2)
# whether 5 is less than or equal to -2: False
print("Is is less or equal?", 5 <= -2)
# ex3.py 数字和数学

# + plus
# - minus
# * asterisk
# / slash
# % percent 取模——取余数
# < less-than
# <= less-than-equal
# > greater-than
# >= greater-than-equal


# PEMDAS = PE(M&D)(A&S)
# Parentheses ()
# Exponents ** （ ^ = XOR )
# Multiplication *
# Division /
# Addition + 
# Subtraction -


# explain what to do next: count chickens
print("I will now count my chickens:")

# print the count of hens
print("Hens", 25.0 + 30.0 / 6)
# print the count of roosters
print("Roosters", 100 - 25.0 * 3 % 4)

# tips that the count of eggs
print("Now I will count the eggs:")

# do some calculating about the number of eggs
print(3 + 2 + 1 - 5 + 4 % 2 - 1.0 / 4 + 6)

# compare 3+2 and 5-7 
print("Is it true that 3 + 2 < 5 - 7?")

# print the comparative result: False
print(3 + 2 < 5 - 7)

# calculate the answer of 3+2
print("What is 3 + 2?", 3 + 2)
# calculate the answer of 5-7
print("What is 5 - 7?", 5 - 7)

# print the answer why 3+2 is not less than 5-7
print("Oh, that's why it's False.")

# print more comparision
print("How about some more.")

# the result whether 5 is greater than -2: True
print("Is it greater?", 5 > -2)
# whether 5 is greater than or equal to -2: True
print("Is it greater or equal?", 5 >= -2)
# whether 5 is less than or equal to -2: False
print("Is is less or equal?", 5 <= -2)
# ex3.py 数字和数学 # + plus # - minus # * asterisk # / slash # % percent 取模——取余数 # < less-than # <= less-than-equal # > greater-than # >= greater-than-equal # PEMDAS = PE(M&D)(A&S) # Parentheses () # Exponents ** （ ^ = XOR ) # Multiplication * # Division / # Addition + # Subtraction - # explain what to do next: count chickens # print the count of hens # print the count of roosters # tips that the count of eggs # do some calculating about the number of eggs # compare 3+2 and 5-7 # print the comparative result: False # calculate the answer of 3+2 # calculate the answer of 5-7 # print the answer why 3+2 is not less than 5-7 # print more comparision # the result whether 5 is greater than -2: True # whether 5 is greater than or equal to -2: True # whether 5 is less than or equal to -2: False