Need help!


#1

bool_four = -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2 is True .
Double check your value for bool_four!
I do not why,who can tell me ? thank you


#2

Does it want bool_four to be False?
What is your exact code?


#3

Be careful with bool_four—there's a big difference between -1**2 and (-1)**2! This is meant to be tricky. Test it out in the labs if you're unsure.
you can look this.i really do not konw why .TY


#4

bool_one = False and False is True

bool_two = -(-(-(-2))) == -2 and 4 >= 16**0.5 is False

bool_three = 19 % 4 != 300/10/10 and False is True

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

bool_five = True and True is True

forth is wrong.


#5

Okay, you're not supposed to put is True or is False in your code.
additionally, bool_one is false, and so is bool_three. T2o falses don't make a true with an and sign in the middle. You don't seem to completely understand the lesson, so I would do simple things if I were you.
An example is if bool_six was desired to be False, I would write the following:

bool_six = 5>9

and that's it.


#6

thank you very much .i have got it.


#7

I'm glad you got it. :slight_smile: No problem.


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.