-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastrologicalsign.py
65 lines (63 loc) · 1.51 KB
/
astrologicalsign.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
t = int(input())
for i in range(t):
day, month = input().split()
if month == "Mar":
if int(day) >= 21:
print("Aries")
else:
print("Pisces")
elif month == "Apr":
if int(day) >= 21:
print("Taurus")
else:
print("Aries")
elif month == "May":
if int(day) >= 21:
print("Gemini")
else:
print("Taurus")
elif month == "Jun":
if int(day) >= 22:
print("Cancer")
else:
print("Gemini")
elif month == "Jul":
if int(day) >= 23:
print("Leo")
else:
print("Cancer")
elif month == "Aug":
if int(day) >= 23:
print("Virgo")
else:
print("Leo")
elif month == "Sep":
if int(day) >= 22:
print("Libra")
else:
print("Virgo")
elif month == "Oct":
if int(day) >= 23:
print("Scorpio")
else:
print("Libra")
elif month == "Nov":
if int(day) >= 23:
print("Sagittarius")
else:
print("Scorpio")
elif month == "Dec":
if int(day) >= 22:
print("Capricorn")
else:
print("Sagittarius")
elif month == "Jan":
if int(day) >= 21:
print("Aquarius")
else:
print("Capricorn")
elif month == "Feb":
if int(day) >= 20:
print("Pisces")
else:
print("Aquarius")