"And" Bool-four completely lost


#1

Hey all,

https://www.codecademy.com/courses/python-beginner-BxUFN/2/2?curriculum_id=4f89dab3d788890003000096#

I am having an error with bool-four, but I cannot find how it is wrong. It just says to double check the value on bool-four

I can't find any issue with the math, is my syntax wrong?

bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2 is False

`


#2

This can be removed.

-(1**2) < 2**0
   -1   <  1
      True

10 % 10 <= 20 - 10 * 2
   0    <=    0
       True

True and True => True

We are expected to examine the expressions and manually determine whether they are True or False. The above demonstrates the steps to follow.


#3

@fazzlez,

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators
1**2 ==> 1*1 ==> 1
2**0 ==> 1
10%10 ==> 0 (remainder operator)
10*2 ==> 20

-(1)<1 and 0 <= 20 - 20
true and true