# -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2 ----> True and False should be False

#1

-(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2
-1 < 1 and 1 <= 0
True and False
I think putting "True" there is wrong, or am I wrong?

#2

doing the math results in:

print True and True

so i it is good True gets printed.

10 % 10 = 0
20 - 10 * 2 = 0
0 <= 0 is true

I think i found your mistake, % is the modulo operator, it gives you the remainder (which is zero), you want to divide, use the / to divide, this will give your 1, then 1 <= 0 is false, which results in:

print True and False

which is false

#3

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

and I got the message "check the value for bool_four"
Is my sintax uncorrect?

#4

i can't do math right now, the bool is False, what should it be? can you provide the url of the exercise?

#5

yes you are right like me, because I tried all of and that is wrong !

#6

If you did what I did on this exercise and accidentally read it as:

20 - 10 ** 2

then you would have gotten False instead. stetim94 explained it well, but I wanted to put another possibility of why you (or maybe some other users) got the wrong answer there.

#7

A post was split to a new topic: Condition

#8