-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHoroscope_Tracker.py
36 lines (32 loc) · 1.03 KB
/
Horoscope_Tracker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'''
Created on Feb 12, 2019
@author: Dylan
'''
month = input("In which month were you born?")
day = input("What day were you born(1-31)?")
day = int(day)
if month == 'January':
sign = 'Capricorn' if (day <20) else 'Aquarius'
elif month == 'February':
sign = 'Aquarius' if (day <19) else 'Pisces'
elif month == 'March':
sign = 'Pisces' if (day <21) else 'Aries'
elif month == 'April':
sign = 'Aries' if (day <20) else 'Taurus'
elif month == 'May':
sign = 'Taurus' if (day <21) else 'Gemini'
elif month == 'June':
sign = 'Gemini' if (day <21) else 'Cancer'
elif month == 'July':
sign = 'Cancer' if (day <23) else 'Leo'
elif month == 'August':
sign = 'Leo' if (day <23) else 'Virgo'
elif month == 'September':
sign = 'Virgo' if (day <23) else 'Libra'
elif month == 'October':
sign = 'Libra' if (day <23) else 'Scorpio'
elif month == 'November':
sign = 'Scorpio' if (day <22) else 'Sagittarius'
elif month == 'December':
sign = 'Sagittarius' if (day <22) else 'Capricorn'
print("Your sign is: ", sign)