MCPcopy Create free account
hub / github.com/geekcomputers/Python / check_sign

Function check_sign

daily_horoscope.py:11–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def check_sign():
12 your_birth_day = input("enter your birthday day number> ")
13 your_birth_month = input("cool, and the month number, please> ")
14 if (int(your_birth_month) == 12 and int(your_birth_day) >= 22) or (
15 int(your_birth_month) == 1 and int(your_birth_day) <= 19
16 ):
17 sign = "Capricorn"
18 elif (int(your_birth_month) == 1 and int(your_birth_day) >= 20) or (
19 int(your_birth_month) == 2 and int(your_birth_day) <= 17
20 ):
21 sign = "Aquarium"
22 elif (int(your_birth_month) == 2 and int(your_birth_day) >= 18) or (
23 int(your_birth_month) == 3 and int(your_birth_day) <= 19
24 ):
25 sign = "Pices"
26 elif (int(your_birth_month) == 3 and int(your_birth_day) >= 20) or (
27 int(your_birth_month) == 4 and int(your_birth_day) <= 19
28 ):
29 sign = "Aries"
30 elif (int(your_birth_month) == 4 and int(your_birth_day) >= 20) or (
31 int(your_birth_month) == 5 and int(your_birth_day) <= 20
32 ):
33 sign = "Taurus"
34 elif (int(your_birth_month) == 5 and int(your_birth_day) >= 21) or (
35 int(your_birth_month) == 6 and int(your_birth_day) <= 20
36 ):
37 sign = "Gemini"
38 elif (int(your_birth_month) == 6 and int(your_birth_day) >= 21) or (
39 int(your_birth_month) == 7 and int(your_birth_day) <= 22
40 ):
41 sign = "Cancer"
42 elif (int(your_birth_month) == 7 and int(your_birth_day) >= 23) or (
43 int(your_birth_month) == 8 and int(your_birth_day) <= 22
44 ):
45 sign = "Leo"
46 elif (int(your_birth_month) == 8 and int(your_birth_day) >= 23) or (
47 int(your_birth_month) == 9 and int(your_birth_day) <= 22
48 ):
49 sign = "Virgo"
50 elif (int(your_birth_month) == 9 and int(your_birth_day) >= 23) or (
51 int(your_birth_month) == 10 and int(your_birth_day) <= 22
52 ):
53 sign = "Libra"
54 elif (int(your_birth_month) == 10 and int(your_birth_day) >= 23) or (
55 int(your_birth_month) == 11 and int(your_birth_day) <= 21
56 ):
57 sign = "Scorpio"
58 elif (int(your_birth_month) == 11 and int(your_birth_day) >= 22) or (
59 int(your_birth_month) == 12 and int(your_birth_day) <= 21
60 ):
61 sign = "Sagittarius"
62
63 return sign
64
65
66def horoscope(zodiac_sign: int, day: str) -> str:

Callers 1

daily_horoscope.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected