9. Logical Operators

9.1. Using the not operator

1print(not True)
2print(not False)
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 9.1.1 (cl_l05_9a_en)

9.2. Using the and operator

1print(True and True)
2print(True and False)
3print(False and True)
4print(False and False)
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 9.2.1 (cl_l05_9b_en)

9.3. Using the or operator

1print(True or True)
2print(True or False)
3print(False or True)
4print(False or False)
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 9.3.1 (cl_l05_9c_en)

You have attempted 1 of 2 activities on this page