9. Operadores lógicos

9.1. Uso del operador not

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)

9.2. Uso del operador and

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)

9.3. Uso del operador or

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)

You have attempted 1 of 2 activities on this page