Stuck on AND statement bool_three


#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

Stuck and can't move forward. Keep getting invalid syntax message


Replace this line with your code. 

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


#2

Check to see if your statement bool_two is correct.

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

#3

Hello,

The syntax error is on the bool_three variable.

Please confirm or post previous code before this.

Thank you. :smile:


#4

Hey @sjreed120,

The syntax error you will be getting is because of the and False part of your code. That is part of the instructions, I believe, and should not be in your code. Revise your code to:

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

That should fix it.


#5

Thanks so much this was exactly the problem. I had an extra ( in bool_two.

Once I corrected book_two the error message cleared and I was able to continue!


#6

Exactly correct - the error was in bool_two!


#7

Thanks - this was the problem! An error in bool_two!


#8

You're welcome!

Have fun coding. :smile: