Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- #
- # escribir un programa que pida un fecha de nacimiento y devuelva su
- # signo del horoscopo
- # EJ
- # Ingrese el mes del nacimiento (enero, febrero,....): abril
- # Ingrese el dia de nacimiento (1,2,3......,31): 28
- # Su signo es Tauro
- # aries: 21 marzo - 19 abril
- # tauro: 20 abril - 20 mayo
- mes = input("Ingrese el mes del nacimiento (enero, febrero,....):")
- dia = int(input("Ingrese el dia de nacimiento (1,2,3......,31):" ))
- if (mes == "marzo" and 21<= dia <=31) or (mes == "abril" and 1<= dia <=19):
- print("Aries")
- elif (mes == "abril" and 20<= dia <=30) or (mes == "mayo" and 1<= dia <=20):
- print("Tauro")
- else:
- print("Error de dÃa y/o mes")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement