# this is my horoscope program print("Hi! Do you want to know your star sign?") print("Then let me know your date of birth!") print("Which month you were born in?") print("Please give the number of the month: 1 for January, 12 for December") MyMonth = int(input()) print("Now please give me the date of your birthday:") MyDate = int(input()) # I decided not to check correctness of the date # as we will take care of the bounds as we go along. StarSign = "Cheeky Monkeus" if MyMonth==1: if MyDate>0 and MyDate<21: StarSign="Capricorn" elif MyDate>=21 and MyDate<=31: StarSign="Aquarius" else: print("You gave me the wrong date!!!") elif MyMonth==2: if MyDate>0 and MyDate<20: StarSign="Aquarius" elif MyDate>=20 and MyDate<=28: # haven't condisered leap year yet! StarSign="Pisces" else: print("You gave me the wrong date!!!") elif MyMonth==3: if MyDate>0 and MyDate<21: StarSign="Pisces" elif MyDate>=21 and MyDate<=31: StarSign="Aries" else: print("You gave me the wrong date!!!") elif MyMonth==4: if MyDate>0 and MyDate<21: StarSign="Aries" elif MyDate>=21 and MyDate<=30: StarSign="Taurus" else: print("You gave me the wrong date!!!") elif MyMonth==5: if MyDate>0 and MyDate<22: StarSign="Taurus" elif MyDate>=22 and MyDate<=31: StarSign="Gemini" else: print("You gave me the wrong date!!!") elif MyMonth==6: if MyDate>0 and MyDate<21: StarSign="Gemini" elif MyDate>=21 and MyDate<=30: StarSign="Cancer" else: print("You gave me the wrong date!!!") elif MyMonth==7: if MyDate>0 and MyDate<23: StarSign="Cancer" elif MyDate>=23 and MyDate<=31: StarSign="Leo" else: print("You gave me the wrong date!!!") elif MyMonth==8: if MyDate>0 and MyDate<23: StarSign="Leo" elif MyDate>=23 and MyDate<=31: StarSign="Virgo" else: print("You gave me the wrong date!!!") elif MyMonth==9: if MyDate>0 and MyDate<23: StarSign="Virgo" elif MyDate>=23 and MyDate<=30: StarSign="Libra" else: print("You gave me the wrong date!!!") elif MyMonth==10: if MyDate>0 and MyDate<24: StarSign="Libra" elif MyDate>=24 and MyDate<=31: StarSign="Scorpio" else: print("You gave me the wrong date!!!") elif MyMonth==11: if MyDate>0 and MyDate<23: StarSign="Scorpio" elif MyDate>=21 and MyDate<=30: StarSign="Sagittarius" else: print("You gave me the wrong date!!!") elif MyMonth==12: if MyDate>0 and MyDate<21: StarSign="Sagittarius" elif MyDate>=21 and MyDate<=31: StarSign="Capricorn" else: print("You gave me the wrong date!!!") else: print("You gave me a wrong month!") print("Your star sign is", StarSign)