What am I supposed to assign to these variables?


#1

Question

What am I supposed to assign to these variables?

Answer

The variables bool_one through bool_five are meant to be assigned the value True or False depending on whether or not the expressionabove it is true or false.
When trying to determine the truth value of a expression, it can be helpful to break down each side of an operator before trying to solve the entire expression. Let’s look at the example below:

# Consider the expression: (35 + 20) <= ((100 - 50) +5)
# The left half results in 55
# The right half has two parts that result in (50) + 5, or 55
bool_googol = True  # 55 is indeed less than or equal to 55

FAQ: Learn Python - Conditionals & Control Flow - Compare... Closelier!
#2

Do you have to put a comment before the variable for the True or False answer to be associated with it?
How do I know what i put will take the true or false statement?
-mostly talking about this part of the code - # (20 - 10) > 15 is this how you make the true and false statement?


#3

Am I supposed to be the one who decide whether each variable is true or false depending on the expression you gave for each variable or am I supposed to write something that makes the program know that the truth value of each variable depended on the expressions you gave for each variable?


#4

What difference does the double * make (**) compared to a single *? Are we to multiply the sum twice?


#5

the ** represents exponential multiplication like raised to the 10th, if i’m not mistaken