Stuck on Python :(


#1



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


bool_one = False or not true and True

bool_two = False and not True or True

bool_three = True and not (False or False)

bool_four = not not True or False and not True

bool_five = False or not (True and True)


Traceback (most recent call last):
File "python", line 1, in
NameError: name 'true' is not defined

Thanks.


Replace this line with your code.


#2

NameError: name 'true' is not defined

It should be True not true.(Capital T)

and the lesson doesn't want it.

Instruction:

Assign True or False as appropriate for bool_one throughbool_five.

Set bool_one equal to the result of False or not True and True

so you just have to write True or False to bool_one according to the result.
what will be the result of

False or not True and True

?
If you think it'll be True then set

bool_one = True

and if you think it'll be False then set

bool_one = False

you can see the hint at the lesson.


#3

Just had to capitalize the True statement, thanks.


#4

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