Set bool_four equal to the result of -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2

??

Setting it to any combination of true or false does not work…

Any help?

Set bool_four equal to the result of -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2

??

Setting it to any combination of true or false does not work…

Any help?

it is not meant to be a combination of True and False, it is meant to be a combination of True and True.

1 Like

I seriously need help, I figured out everything else, but not this!!!

WHy on earth make this exercise all about hard math calculation? Do it with 1 - 10, or?

Got points for cheating, just copied and paste:

bool_one = 3 < 2 and 4 > 6

bool_two = -(-(-(-2))) == -2 and 4 >= 16**0.5
bool_three = 19 % 4 != 300 / 10 / 10 and False
bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2

bool_five = 3 == 3 and 4 == 4

All you do it copy and paste the text in the instructions

```
bool_one = 1 < 1 and 2 > 5
bool_two = -(-(-(-2))) == -2 and 4 >= 16**0.5
bool_three = 19 % 4 != 300 / 10 / 10 and False
bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2
bool_five = True and True
```

1 Like

This one is confusing and needs clarification in the instructions. Copying and pasting 2-4 works, but I do not believe that’s what is being asked of us. Otherwise, what is the **Hint** referring to? Can someone clarify?

3 Likes

having the same issue. I don’t wanna just copy and paste, because whats the point of learning code if you just copy and paste. Definitely needs better clarification.

bool_four is definetly a bug

Help notifies to be careful with difference between -1 ** 2 and 1 ** 2.

True, here (1 ** 2) = 1

so -(1**2) = -1
which is less than result of 2**0 = 1

Thus result is True, just like other side making bool_four True and True.

But system reports mistake in bool Z

bool_four = False and not True

Here is why …

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

10 % 10 <= 20 - 10 * 2 is 1 <= 0 is False (Order of Operations states Multilication first)

I hope this justifies.

bool_four = False and not True

Here is why …

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

10 % 10 <= 20 - 10 * 2 is 1 <= 0 is False (Order of Operations states Multilication first)

I hope this justifies.

1 Like

thank you bruhh!!!

Gaah, this lesson was very frustrating. I spent a bunch of time trying to figure out what I was supposed to be doing with this, and the hint was no help. Appreciate those in the thread giving the tip to copy/paste. Not sure what is learned here in this lesson. That I can copy and paste?

1 Like

This lesson made me bang my head

And why is there a hint option provided when its of no use at all

I don’t know if this is a bug or not, probably it is, but here is how my code looks like after I managed to bypass this lesson:

```
bool_one = False and False
bool_two = -(-(-(-2))) == -2 and 4 >= 16**0.5 is True
bool_three = 19 % 4 != 300 / 10 / 10 and False is False
bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2
bool_five = True and True is True
```

I hope this will help.

Have a nice day!

For everyone, who has problem with bool_four

10 % 10 is not a division - it`s a mod, so 10 % 10 = 0 and 0 is <= 20 - 10 * 2.

So the answer is true.

2 Likes

It looks like I am not the only one who was overthinking this one to the point of getting stuck!

The big hint is really in the instruction and remembering how literal the language is: **"The boolean operator and returns True when the expressions on both sides of and are true."**

The answers are therefore either true or false. If both sides aren’t true, then the result must be false.

I was nearly tearing my hair out for a bit there… I hope this helps anyone in the same situation!

2 Likes