I just started python a few days ago, and I am now on conditionals and control flow. I just reached booleans, and as it is just math, I seem to understand it quite well - I think so at least.
However, I do not know what I am doing wrong here, in the “and” boolean operator.
This is my code:
bool_one = false and false
bool_two = 2 == -2 and 4 >= 4
bool_three = 3 != 3 and false
bool_four = -1 < 0 and 0 <= 0
bool_five = true and true
and this is the task:
Let’s practice with
and . Assign each variable to the appropriate boolean value.
bool_oneequal to the result of
False and False
bool_twoequal to the result of
-(-(-(-2))) == -2 and 4 >= 16 ** 0.5
bool_threeequal to the result of
19 % 4 != 300 / 10 / 10 and False
bool_fourequal to the result of
-(1 ** 2) < 2 ** 0 and 10 % 10 <= 20 - 10 * 2
bool_fiveequal to the result of
True and True
I even tried to just write the first 3 as false and the last 2 as true. I am not sure what I am doing wrong here, so I would love to get some help.
Also, how do I change this godforsaken username into a proper one?
link to task: