Can anyone help me? I'm stuck


#1




bool_one = 3 < 2 or not 3 < 4 or 4 < 5

bool_two = 3 < 2 and 5 = 4 or 5 < 6

bool_three = 3 > 2 and not (3 < 2 or 5 < 3)

bool_four = not not 3 < 4 or 2 < 1  and not 5 != 6

bool_five = 2 > 3 or not (3 < 4 and 5 < 6)


#2

from the instructions:

Assign True or False as appropriate for bool_one through bool_five.

lets do an example to better understand this, for example for bool_one, again from the instructions:

Set bool_one equal to the result of False or not True and True

now you have analyse if False or not True and True is true or false, if it is true, set bool_one to False:

bool_one = False

if this condition would evaluate to True, set bool_one to True:

bool_one = True

#3

Thank u so much. That really helped. I had no idea all u had to enter was "True" or "False"


#4

i see this happen a lot, i believe when i did the track for the first time i also failed to understand it, the problem also that if you this:

bool_one = False or not True and True

the condition will also evaluate to False and be approved by the exercise.

But good you understand now, try to do the exercise as it was designed to :slight_smile:


#5

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