Can't assign to operator


#1


File "python", line 7
SyntaxError: can't assign to operator


bool_one = 2 == 4 or not 5 > 1 or 10 < 100

bool_two = 2 < 4 and not 4 > 2 or 3 < 6

bool_three = 2 != 5 and not 5 == 4 or 2 > 3

bool_four = not not 2 > 1 or 5 == 6 and not 3 = 3

bool_five = 4 >= 5 or not 4 == 4 and 5 >= 5


#2

I think you mean:

3 == 3

#3

still not letting me through


#4

Can you give a link to the exercise? Or the name of the exercise?


#5

https://www.codecademy.com/en/courses/python-beginner-BxUFN/2/5?curriculum_id=4f89dab3d788890003000096#


#6

They wanted you to quite literally paste the values listed in the directions into the bools like this:

bool_one = False or not True and True

bool_two = False and not True or True

bool_three = True and not (False or False)

bool_four = not not True or False and not True

bool_five = False or not (True and True)

#7

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