Advertisement
teslariu

ej2

Sep 17th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # 1 condicional y 2 bucles
  5. # condicional: if-else
  6.  
  7. edad = int(input("Por favor, ingrese su edad: "))
  8.  
  9. if edad < 18:
  10.     print("Usted es menor de edad")
  11.     print("Que lástima....")
  12. else:
  13.     print("Usted es mayor de edad")
  14.     print("Que bueno....")
  15. print("Chau")
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement