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:
12
HolaMundo/02_if01.py
Normal file
12
HolaMundo/02_if01.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""
|
||||
Condicionales con if
|
||||
"""
|
||||
|
||||
edad = input("Introduce tu edad: ")
|
||||
edad = int(edad)
|
||||
if edad > 17:
|
||||
print("Puedes ver la pelicula. Adelante!")
|
||||
if edad >= 55:
|
||||
print("Ademas, no olvides pedir el descuento para seniors")
|
||||
else:
|
||||
print("Lo siento, eres menor de edad")
|
||||
Reference in New Issue
Block a user