-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathp14.py
More file actions
72 lines (53 loc) · 2.24 KB
/
p14.py
File metadata and controls
72 lines (53 loc) · 2.24 KB
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
66
67
68
69
70
71
72
# p14.py
# Rishi Saravanan
# Python 3.11.9
# Description:
'''
Write a program that asks the user for day and month of a birthday.
The program then tells the Zodiac signs that will be compatible with that birthday
Constellation English Name Dates
-Aries The Ram Mar. 21–Apr. 19
-Taurus The Bull Apr. 20–May 20
-Gemini The Twins May 21–June 21
-Cancer The Crab June 22–July 22
-Leo The Lion July 23–Aug. 22
-Virgo The Virgin Aug. 23–Sept. 22
-Libra The Balance Sept. 23–Oct. 23
-Scorpio The Scorpion Oct. 24–Nov. 21
-Sagittarius The Archer Nov. 22–Dec. 21
-Capricorn The Goat Dec. 22–Jan. 19
-Aquarius The Water Bearer Jan. 20–Feb. 18
-Pisces The Fishes Feb. 19–Mar. 20
'''
month = int(input("Please enter your month of birth: "))
day = int(input("Please enter your day of birth: "))
if ( month == 3 and day >= 21 ) or ( month == 4 and day <= 19 ):
print("You are a Aries")
if ( month == 4 and day >= 20 ) or ( month == 5 and day <= 20 ):
print("You are a Taurus")
if ( month == 5 and day >= 21 ) or ( month == 6 and day <= 21 ):
print("You are a Gemini")
if ( month == 6 and day >= 22 ) or ( month == 7 and day <= 22 ):
print("You are a Cancer")
if ( month == 7 and day >= 23 ) or ( month == 8 and day <= 22 ):
print("You are a Leo")
if ( month == 8 and day >= 23 ) or ( month == 9 and day <= 22 ):
print("You are a Virgo")
if ( month == 9 and day >= 23 ) or ( month == 10 and day <= 23 ):
print("You are a Libra")
if ( month == 10 and day >= 24 ) or ( month == 11 and day <= 21 ):
print("You are a Scorpio")
if ( month == 11 and day >= 22 ) or ( month == 12 and day <= 21 ):
print("You are a Sagittarius")
if ( month == 12 and day >= 22 ) or ( month == 1 and day <= 19 ):
print("You are a Capricorn")
if ( month == 1 and day >= 20 ) or ( month == 2 and day <= 18 ):
print("You are a Aquarius")
if ( month == 2 and day >= 19 ) or ( month == 3 and day <= 20 ):
print("You are a Pisces")
'''
===================== RESTART: C:/Users/rishi/python/p14.py ====================
Please enter your month of birth: 2
Please enter your day of birth: 21
You are a Pisces
'''