Need help with an invalid syntax error


#1



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


File "python", line 5
bool_three = 19 % 4 != 300 / 10 / 10 and False
^
SyntaxError: invalid syntax

bool_three reflects an invalid syntax error when i copied exactly what the instruction says. Can anyone help me with this?


bool_one = False and False

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

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

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

bool_five = True and True


#2

you should manually evaluate if the conditions are true or false, and then set bool_one to to the right value, so for bool_one (which is false), you set bool_one to false:

bool_one = False

as for your syntax error, you have 4x ( in bool_two and 3x )


#3

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