Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Script que pide una edad y devuelve su condicion frente al voto
- menos de 16 -> prohibido
- entre 16 y 18: optativo
- de 18 a 70: obligatorio
- mas de 70 optativo
- """
- edad = int(input("Ingrese su edad: "))
- if 0 < edad < 16:
- print("Voto prohibido")
- elif 16 <= edad <18 or edad >= 70:
- print("Voto optativo")
- elif 18 <= edad < 70:
- print("Voto obligatorio")
- else:
- print("Error en el ingreso de la edad")
Advertisement
Add Comment
Please, Sign In to add comment