Curso-lenguaje-python/python-total/dia_04/02_operadores_logicos.py
Manuel Vergara f4e9797c4b Restructure content and add notes from HolaMundo
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
2023-05-20 09:36:26 +02:00

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()