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
| def get_birthday():
bd =int(input("Tell me, what day of the month were you born on: "))
return bd
def get_today():
date=int(input('Tell me, what day of the month is it today: '))
return date
def get_birthmonth():
bm=int(input("I need one last piece of information. Tell me, what month were you born in: "))
return bm
def likes_spicy_food():
print("One more question before we begin.")
lsf=int(input("Do you like spicy food? (1 = yes, 2 = no) "))
if lsf == 1 :
return True
if lsf == 2 :
return False
def read_lifeline(date, bd, lsf):
print('I will now read your lifeline.')
if lsf is True and bd%3==0:
print ("You have a long, deep line. Your life will be filled with health and balance.")
elif lsf is True and date%4==0 or date%5==0:
print("You have a short, deep line. You possess remarkable fortitude.")
elif lsf is True and bd%3 !=0 and date%4 !=0 and date%5 !=0 :
print("A dark cloud passes over my inner eye.")
elif lsf is False :
print("Your line is forked and branching. Interesting events await you.")
def read_heartline(date, gb):
print('I will now read your heartline.')
heartline = (date - gb)
if heartline == 0:
print('Your heartline is the perfect example of long. You are filled with warmth and love.')
elif abs(heartline) > 10 :
print("You have a faint line. You will need to work to stay present emotionally.")
else :
print("The deepness of your heartline will cause trouble if you are not aware.")
def read_headline(bd,bm):
print('I will now read your headline')
if bd == 15 and bm == 3:
print("I'm afraid the crosses that I see here cannot be good.")
elif bd == bm :
print("The deep and wavy line here shows excellent memory but not without conflict.")
elif bd%2 ==0 and bm%2 ==0 or bd%2 !=0 and bm%2 !=0:
print("The branched and upwards line here shows big dreams and self awareness.")
else:
print("The branched line here shows many events unknown to even the spirits.")
def welcome():
print("Welcome to Madame Maxine's Fortune Palace.")
print("Here, we gaze deeply into your soul and find the secrets that only destiny has heretofore known!")
def goodbye():
print()
print("These insights into your future are not to be enjoyed or dreaded, they simply come to pass.")
print("Good day.")
def bad_day():
print()
print("Today is a bad day for fortune telling.")
def line_1():
print("The power of my inner eye clouds my ability to keep track of mundane things like the date.")
def line_3():
print("Numerology is vitally important to fortune telling.")
def main():
welcome()
print()
line_1()
date = get_today()
line_3()
bd= get_birthday()
if 0<date<=9 :
lsf= likes_spicy_food()
read_lifeline(date,bd,lsf)
if 9<date<=19 :
read_heartline(date,bd)
if 19<date<=29 :
bm = get_birthmonth()
read_headline(bd,bm)
if date == 30 or date == 31:
bad_day()
goodbye()
main() |
Partager