Curso-lenguaje-python/python-total/dia_04/02_operadores_logicos.py

23 lines
239 B
Python
Raw Normal View History

2023-04-12 21:54:25 +02:00
"""
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()