I need help please


#1

hey i need help
why is this a syntax error
bool_three = 19 % 4 != 300 / 10 / 10 and 2 > 3
this is in Python
please help


#2

try to change and with &&


#3

Why and should be converted to &&?and also work right?


#4

Actually and is the correct operator in python (although && is common in many other languages).
Also from what I can see the syntax should be correct and non of my python interpreters threw an error. Maybe you could link the exercise where is one occurs.


#5

Hi there!

I believe everything is okay with your syntax:
bool_three = 19 % 4 != 300 / 10 / 10 and 2 > 3
print bool_three

Result: False

To pass that lesson, you just need to assign variable 'bool_three' to correct boolean value [True or False] and submit your code.

Python actually does math for you, just pass following line '19 % 4 != 300 / 10 / 10 and 2 > 3' to Python, hit enter and see the magic in action.


#6

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