Stuck on Python :(


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


Replace this line with your code.


NameError: name 'true' is not defined

It should be True not true.(Capital T)

and the lesson doesn't want it.


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.


Just had to capitalize the True statement, thanks.


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