23 lines
239 B
Python
23 lines
239 B
Python
|
"""
|
||
|
Operadores lógicos
|
||
|
"""
|
||
|
|
||
|
|
||
|
a = 6 > 5
|
||
|
b = 30 == 15*3
|
||
|
|
||
|
mi_bool = a and b
|
||
|
print(mi_bool)
|
||
|
|
||
|
mi_bool = a or b
|
||
|
print(mi_bool)
|
||
|
|
||
|
mi_bool = not a
|
||
|
print(mi_bool)
|
||
|
|
||
|
mi_bool = (4>5) and (5 == 2+5)
|
||
|
print(mi_bool)
|
||
|
|
||
|
mi_bool = "perro" == "perro"
|
||
|
print()
|