This and That (or This But Not That!)


#1



`python

Could anyone explain this exercise in detail. Thank you in advance. :slight_smile: `


#2

For each proposition you have to tell if the result is True or False...


#3

That's my code, when i press the continue button, an error showed to me that, "Oopss Try Again. Double check your value for bool_four".

bool_one = not 10 <= 2*5 and 10*2 == 2*5+10 or 1 >= 2**3

bool_two = not 20 <= 2**5 and 10 >= 3**8 or 16 >= 2**4

bool_three = not 2 == 2*1 and 2**3 > 10 or 10 != 3**3

bool_four = not 10 >= 2*2+1 and 5**2 != 2*4 + 5 or 3**3 == 6*2

bool_five = not 10 != 2**2 and 4*4 == 2*2*2*2 or 50/10 >= 2**5 / 5


#4

You just have to write True or False.
eg:

bool_one = False 
bool_two = True
.
.
.
bool_five = False

#5

Thanks Bro.. I've gonna mad for last 8 hours.. Thank you so much :heart_eyes: :heart_eyes:


#6

You're welcome bro!:+1:


#7

you are just like me if you spent such a lot of hours i also did the same


#8

if 17 < 328 :
bool_one = True

if 100 == (2*50) :
bool_two = true

Set this to True if 19 <= 19 or to False if it is not.

if (19 <= 19) :
bool_three = true

Set this to True if -22 >= -18 or to False if it is not.

if (-22 >= -18) :
bool_four = False

Set this to True if 99 != (98 + 1) or to False otherwise.

if 99 != (98 + 1):
bool_five = False

Gives Error
File "python", line 5
bool_one = True
^
IndentationError: expected an indented block


#9

look the 4th message :point_up:


#10

Thank you Bro I got it


#11

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