Booleans ( i am really confused)


#1



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


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


bool_one = 1 == 2 or not 1 == 1 and 2 == 2

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

bool_three = 3 != 2 and not 3 == 2 or 3 == 1

bool_four = 3 = 2 or 4 < 2 and 4 == 3

bool_five = 3 < 1 or not 3 == 3 and 3 > 2


It will probably be all wrong but i can use some help, Thanks.


#2

this bit of bool_four:

3 = 2

you should compare 2 and 3, not assign two to three (that is weird)


#3

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