Curso-lenguaje-python/python-total/dia_04/01_operadores_comparacion.py

24 lines
269 B
Python
Raw Permalink Normal View History

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