Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # 1 condicional y 2 bucles
- # condicional: if-else
- edad = int(input("Por favor, ingrese su edad: "))
- if edad < 18:
- print("Usted es menor de edad")
- print("Que lástima....")
- else:
- print("Usted es mayor de edad")
- print("Que bueno....")
- print("Chau")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement