And Operator


#1

I seem to be having trouble with bool_four in the section where I have to choose whether the boolean statement is correct or wrong. Bool four goes like this:

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

My answer is that it's False but the program is prompting me to 'double check your value for bool_four'

Help please.


#2

When I throw it into the IDE it says True not false.

Also, the and is more of a statement not an operator.


#3

The answer is True, when you break it down like in the IDE in this way;

print -(1**2) < 2**0 # will return True
print 10 % 10 <= 20 - 10 * 2 # will return True,

This means that it is a True and True scenario which yields True. My issue is that the CodeAcademy program which is grading this is finding an issue with the code itself. It's returning this message:

'Oops, try again. Double check your value for bool_four!'


#4

In that case make it simple for the checker, you will have to keep in mind they didn't build a 100% comprehensive check system that woudl require more code than anyone would want to write for something like this.


#5

I get the same thing. It does not allow me to move forward, despite having the correct answer.