You've already forked Curso-lenguaje-python
Restructure content and add notes from HolaMundo
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
This commit is contained in:
22
python-total/dia_04/02_operadores_logicos.py
Normal file
22
python-total/dia_04/02_operadores_logicos.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""
|
||||
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()
|
||||
Reference in New Issue
Block a user