Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- """
- Script que lee un dia de nacimiento (1,2,3,...31) y un mes (enero,
- febrero, marzo, ... diciembre) y devuelve el signo del horoscopo
- Aries: 21 de marzo hasta 20 de abril
- Tauro: 21 de abril al 20 de mayo
- ....
- """
- dia = int(input("Ingrese el día (1,2,..31) de su nacimiento: "))
- mes = input("Ingrese el mes (enero, febrero,...) de su nacimiento: ")
- mes = mes.lower()
- if 20< dia <32 and mes == "marzo" or 0< dia <21 and mes == "abril":
- print("Aries")
- elif 20< dia <32 and mes == "abril" or 0< dia <21 and mes == "mayo":
- print("Tauro")
- else:
- print("Mes y/o dia incorrecto")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement