Curso-lenguaje-python/python-total/dia_04/01_operadores_comparacion.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

24 lines
269 B
Python

"""
Operadores de comparación
== igual a
!= diferente a
> mayor que
< menor que
>= mayor o igual que
<= menor o igual que
"""
mi_bool = 5 >= 6
print(mi_bool)
mi_bool = 5 != 6
print(mi_bool)
mi_bool = 10 == 2*5
print(mi_bool)
mi_bool = 5 < 6
print(mi_bool)