Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- while True:
- ######### mi programa ##########################
- edad = int(input("Por favor, ingrese su edad: "))
- if edad >= 18:
- print("Mayor de edad")
- else:
- print("Menor de edad")
- #################################################
- opcion = input("Presione cualquier tecla para continuar ('x' para salir): ")
- if opcion.lower() == "x":
- print("Gracias por usar este programa, hasta luego...")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement