No correct answer in Python assesment


The True and False Keywords need to start with a capital T and a capital F.
All caps TRUE and FALSE will also give a name error.
The other 2 options won’t be correct for the question.

The code in the picture will return a NameError.
This code snipet is found in the Assessment: Python Fundamentals for Data Science (Part I)
Am I wrong? Please let me know. If not Please fix.

Please post a link to this exercise, thank you.

Aside

0 is a Boolean in Python, as is, 1.

>>> 0 == False
True
>>>

Hi,
Thank you for your reply.

Here is the link.

I forget about 1 and 0 being boolean values too, thanks for pointing that out.
Assuming this is a (Python Syntax and Variable Types) question, it accepted the above as a correct answer as I got all of those questions right.

Thanks.

1 Like