I don't understand True and False, 0 and 1


#1

Please leave the following link in the post so we can find the unit module, else replace it with a link to the exact lesson:

Strings and Console Output

OK. So ive started the module and I am having a hard time with something

"1.
Someone has introduced themselves to you using comments in script.py.

Read the comments and then create a variable called age_is_12 and set it to be True or False depending on if this person’s age is 12.

Create a variable called name_is_maria and set it to be True or False depending on if this person’s name is Maria.

Please help me understand why this is correct:

age_is_12 = 0
name_is_maria = True

Why is one “0” and not “False” and the other is “True” and not “1” ?

Im confused


#2

So that just this very question would come up. There is a correlation between 0 and False. and 1 and True.


#3

Correct and passing are two different things. According to the instructions, it isn’t correct


#4

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