-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbirthdays programming
214 lines (189 loc) · 15.5 KB
/
birthdays programming
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
name = input('Enter your name: ')
print('Hi', name +'!')
age = input('What age have you turned/are turning this year (in 2023)? ')
birthYear = 2023-int(age)
#creates a loop that makes sure the birth month is valid (within the 12 months of the year)
month = input('what month were you born in (enter as its number, ex. March = ‘3’)')
while int(month)<1 or int(month)>12:
print('\n\nThere are only 12 months in a year silly, why dont you try again!')
month = input('what month were you born in (enter as its number, ex. March = ‘3’)')
day = input('What day of this month are you born on? ')
horoscope = ''
monthName=''
horoscopeInfo =''
hLink =''
#creates a loop that allows users to try again if they have mistakenly put in the wrong birth day
while True:
if int(month) == 1:
monthName = 'January'
if 0 < int(day) and int(day) <= 20:
horoscope ='Capricorn'
horoscopeInfo = 'Capricorns are masters of discipline.\nThe wringing of the hands, the constant reminders, the exacting structure, the ever-increasing goals, the tidal wave of self-criticism that \nlasts forever. They are the ultimate perfectionists.\nThey can be so absorbed in their own internal monologue that it becomes impossible to get them to look away from themselves.\nCapricorns are often called “workaholics.”'
hLink ='https://www.costarastrology.com/zodiac-signs/capricorn-sign'
break
elif int(day) > 20 and int(day) <= 31:
horoscope = 'Aquarius'
horoscopeInfo ='Aquarians are archetypal outcasts. This doesn’t mean they’re loners.\nIn fact, they thrive in large groups—charming you with their peculiar senses of humor, intriguing you with fun facts about the history of\ndisposable straws, or convincing you to join their reading groups.\nThe alienation they feel is often self-imposed—a result of their knee-jerk contrarianism, rather than a lack of social intelligence.\nThey try to be weird. Aquarians hang grapefruit rinds from the wall and call it art, they pretend to actually like noise music, they saturate\ntheir internal monologues with SAT words.'
hLink ='https://www.costarastrology.com/zodiac-signs/aquarius-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 2:
monthName= 'Feburary'
if 0 < int(day) and int(day) <= 19:
horoscope = 'Aquarius'
horoscopeInfo ='Aquarians are archetypal outcasts. This doesn’t mean they’re loners.\nIn fact, they thrive in large groups—charming you with their peculiar senses of humor, intriguing you with fun facts about the history of\ndisposable straws, or convincing you to join their reading groups.\nThe alienation they feel is often self-imposed—a result of their knee-jerk contrarianism, rather than a lack of social intelligence.\nThey try to be weird. Aquarians hang grapefruit rinds from the wall and call it art, they pretend to actually like noise music, they saturate\ntheir internal monologues with SAT words.'
hLink = 'https://www.costarastrology.com/zodiac-signs/aquarius-sign'
break
elif int(day) > 19 and int(day)<= 28:
horoscope = 'Pisces'
horoscopeInfo ='Describing a Pisces’ personality can be difficult because Pisces tend to evade distinction.\nTheir behavior changes significantly based on who they’re around.\nPisces are just permeable membranes that pensively let things flow through them.\nThey are cerebral sea sponges.\nThey are boundless, diluting themselves with larger personalities to avoid having to form coherent identities.'
hLink = 'https://www.costarastrology.com/zodiac-signs/pisces-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 3:
monthName ='March'
if 0 < int(day) and int(day) <=20:
horoscope = 'Pisces'
horoscopeInfo ='Describing a Pisces’ personality can be difficult because Pisces tend to evade distinction.\nTheir behavior changes significantly based on who they’re around.\nPisces are just permeable membranes that pensively let things flow through them.\nThey are cerebral sea sponges.\nThey are boundless, diluting themselves with larger personalities to avoid having to form coherent identities.'
hLink='https://www.costarastrology.com/zodiac-signs/pisces-sign'
break
elif int(day) > 20 and int(day) <= 31:
horoscope = 'Aries'
horoscopeInfo ='Aries are driven by a desire to prove themselves and their strength. They have high energy, and are competitive and ambitious.\nThey naturally take charge because they are good at initiating new projects.\nThey can also be impatient, but are naturally active and don’t like to waste time.'
hLink = 'https://www.costarastrology.com/zodiac-signs/aries-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 4:
monthName= 'April'
if 0 < int(day) and int(day) <=20:
horoscope ='Aries'
horoscopeInfo= 'Aries are driven by a desire to prove themselves and their strength. They have high energy, and are competitive and ambitious.\nThey naturally take charge because they are good at initiating new projects.\nThey can also be impatient, but are naturally active and don’t like to waste time.'
hLink = 'https://www.costarastrology.com/zodiac-signs/aries-sign'
break
elif int(day) > 20 and int(day) < 30:
horoscope = 'Taurus'
horoscopeInfo = 'Tauruses are the human equivalent of moss. A handmade wooden chair.\nThey are normally satisfied with the way things are. They embody stability.\nSitting in a patch of grass admiring the breeze.\nWhen everything else seems to be falling apart, Tauruses are a rock of dependability in an oasis of calm.\nPractical knowledge and experience is their modus operandi.'
hLink= 'https://www.costarastrology.com/zodiac-signs/taurus-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 5:
monthName = 'May'
if 0 < int(day) and int(day) <=20:
horoscope ='Taurus'
horoscopeInfo = 'Tauruses are the human equivalent of moss. A handmade wooden chair.\nThey are normally satisfied with the way things are. They embody stability.\nSitting in a patch of grass admiring the breeze.\nWhen everything else seems to be falling apart, Tauruses are a rock of dependability in an oasis of calm.\nPractical knowledge and experience is their modus operandi.'
hLink= 'https://www.costarastrology.com/zodiac-signs/taurus-sign'
break
elif int(day) > 20 and int(day)<= 31:
horoscope = 'Gemini'
horoscopeInfo ='Geminis are versatile, comfortable being both introverts and extroverts.\nThey are quick to adapt to the energy of a room–they can be the life of the party or a complete wallflower.\nGeminis know how to bring dissimilar people together and make them get along.'
hLink= 'https://www.costarastrology.com/zodiac-signs/gemini-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 6:
monthName = 'June'
if 0 < int(day) and int(day) <= 21:
horoscope = 'Gemini'
horoscopeInfo ='Geminis are versatile, comfortable being both introverts and extroverts.\nThey are quick to adapt to the energy of a room–they can be the life of the party or a complete wallflower.\nGeminis know how to bring dissimilar people together and make them get along.'
hLink= 'https://www.costarastrology.com/zodiac-signs/gemini-sign'
break
elif int(day) > 21 and int(day) <= 30:
horoscope = 'Cancer'
horoscopeInfo= 'A Cancer’s personality is like wading chest deep in a lake of warm water.\nIt feels sparkling and cool while youre in the shallow end, but you know that if you were to dive in, it would feel warm.'
hLink= 'https://www.costarastrology.com/zodiac-signs/cancer-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 7:
monthName = 'July'
if 0 < int(day) and int(day) <=22:
horoscope = 'Cancer'
horoscopeInfo= 'A Cancer’s personality is like wading chest deep in a lake of warm water.\nIt feels sparkling and cool while youre in the shallow end, but you know that if you were to dive in, it would feel warm.'
hLink= 'https://www.costarastrology.com/zodiac-signs/cancer-sign'
break
elif int(day) > 22 and int(day) <= 31:
horoscope = 'Leo'
horoscopeInfo= 'Leos inject ambition into everything they do. They are ruled by the heart.\nTheir actions are natural and effortless because they are brash and confident and trust their instincts.'
hLink ='https://www.costarastrology.com/zodiac-signs/leo-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 8:
monthName = 'August'
if 0 < int(day) and int(day) <=23:
horoscope = 'Leo'
horoscopeInfo= 'Leos inject ambition into everything they do. They are ruled by the heart.\nTheir actions are natural and effortless because they are brash and confident and trust their instincts.'
hLink ='https://www.costarastrology.com/zodiac-signs/leo-sign'
break
elif int(day) > 23 and int(day) <= 31:
horoscope ='Virgo'
horoscopeInfo ='Virgos are known for being perfectionists.\nThey are known for their attention to detail, which helps them find patterns where there are none.\nAt times, Virgos can be finicky and critical to a fault.'
hLink ='https://www.costarastrology.com/zodiac-signs/virgo-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 9:
monthName ='September'
if 0 < int(day) and int(day) <= 23:
horoscope = 'Virgo'
horoscopeInfo ='Virgos are known for being perfectionists.\nThey are known for their attention to detail, which helps them find patterns where there are none.\nAt times, Virgos can be finicky and critical to a fault.'
hLink ='https://www.costarastrology.com/zodiac-signs/virgo-sign'
break
elif int(day) > 23 and int(day) <= 30:
horoscope = 'Libra'
horoscopeInfo = 'Libras are difficult to really understand because they seem so contradictory.\nThey’re simultaneously extroverted and introverted, strategic and spontaneous, focused and intuitive.\nThis variability makes it difficult to pin down their true character.\nThey are an entire constellation of personalities.'
hLink ='https://www.costarastrology.com/zodiac-signs/libra-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 10:
monthName ='October'
if 0 < int(day) and int(day) <=23:
horoscope = 'Libra'
horoscopeInfo = 'Libras are difficult to really understand because they seem so contradictory.\nThey’re simultaneously extroverted and introverted, strategic and spontaneous, focused and intuitive.\nThis variability makes it difficult to pin down their true character.\nThey are an entire constellation of personalities.'
hLink ='https://www.costarastrology.com/zodiac-signs/libra-sign'
break
elif int(day) > 23 and int(day) <= 31:
horoscope = 'Scorpio'
horoscopeInfo = 'A Scorpio personality is a chasm of infinite complexity (or at least how they project themselves).\nThey are difficult people to get to know because they are psychological trap doors.'
hLink = 'https://www.costarastrology.com/zodiac-signs/scorpio-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 11:
monthName ='November'
if 0 < int(day) and int(day) <= 22:
horoscope = 'Scorpio'
horoscopeInfo = 'A Scorpio personality is a chasm of infinite complexity (or at least how they project themselves).\nThey are difficult people to get to know because they are psychological trap doors.'
hLink = 'https://www.costarastrology.com/zodiac-signs/scorpio-sign'
break
elif int(day) > 22 and int(day) <= 30:
horoscope = 'Sagittarius'
horoscopeInfo = 'Sagittarians are the ultimate empiricists.\nThey will always choose principles over feelings and will often question who they are.\nThey move from job to job, philosophy to philosophy, belief to belief.\nThey are explorers of the human condition and are unafraid of change.\nSagittarians feel like the world is their playground. They love to explore the unknown.\nAt their core, they want to understand how the world works.'
hLink ='https://www.costarastrology.com/zodiac-signs/sagittarius-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
elif int(month) == 12:
monthName= 'December'
if 0 < int(day) and int(day) <= 21:
horoscope = 'Sagittarius'
horoscopeInfo = 'Sagittarians are the ultimate empiricists.\nThey will always choose principles over feelings and will often question who they are.\nThey move from job to job, philosophy to philosophy, belief to belief.\nThey are explorers of the human condition and are unafraid of change.\nSagittarians feel like the world is their playground. They love to explore the unknown.\nAt their core, they want to understand how the world works.'
hLink ='https://www.costarastrology.com/zodiac-signs/sagittarius-sign'
break
elif int(day) > 21 and int(day) <= 31:
horoscope = 'Capricorn'
horoscopeInfo = 'Capricorns are masters of discipline.\nThe wringing of the hands, the constant reminders, the exacting structure, the ever-increasing goals, the tidal wave of self-criticism that\nlasts forever. They are the ultimate perfectionists.\nThey can be so absorbed in their own internal monologue that it becomes impossible to get them to look away from themselves.\nCapricorns are often called “workaholics.”'
hLink ='https://www.costarastrology.com/zodiac-signs/capricorn-sign'
break
else:
day = input ('Oops, you made a mistake, why dont you try again...What day were you born on?')
else:
print('hmm something went wrong :/')
print("\nWell", name + ", your birthday is", monthName, str(day) + ",", str(birthYear) +'. You are a', horoscope + ', here is a little bit of infromation about your sign:\n')
print(horoscopeInfo)
print("\nIf you would like some more info feel free to check out:", hLink)