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:
9
HolaMundo/03_if_ternario.py
Normal file
9
HolaMundo/03_if_ternario.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""
|
||||
Operador ternario
|
||||
"""
|
||||
|
||||
edad = 15
|
||||
|
||||
mensaje = "Es mayor" if edad > 17 else "Es menor"
|
||||
|
||||
print(mensaje)
|
||||
Reference in New Issue
Block a user