Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Fortune Teller
- #
- #Dustin Hammack
- #Feb. 4, 2017
- print('\n\n\t\tWell hello there! My name is GENIE and I am here to read your ')
- print('\t\tfotune, and as a bonus, I will also read you your lucky numbers.')
- print()
- print()
- import random
- name = input('What is your name? ')
- print(input('\n' + name + ', please press enter to get your fortune and set of lucky numbers \n\n'))
- def fortuneTeller():
- a = '"Today is the day to show someone you care."'
- b = '"You can create your own happiness."'
- c = '"Mistakes happen.. Turn them into opportunities."'
- d = '"It\'s not about the destination, it\'s about the journey."'
- e = '"Take the time to invest in yourself today"'
- f = '"There are high hopes for your future."'
- g = '"It\'s ok to talk to strangers."'
- h = '"Love is like oxygen, you need it to survive."'
- i = '"May your cookie jar overflow with goodies."'
- j = '"Life\'s journey is always an adventure."'
- k = '"You can create your own happiness."'
- l = '"Say yes to exciting opportunites."'
- m = '"You won\'t know until you try."'
- n = '"There is great love in your future."'
- o = '"May life throw you a pleasant curve."'
- p = '"You will live a long and happy life."'
- q = '"A single kind word can keep one warm for years."'
- r = '"All people smile in the same language."'
- s = '"Before honor is humility."'
- t = '"The time is right to make new friens."'
- u = '"Do not mistake temptation for opportunity."'
- v = '"To love is to forgive."'
- w = '"Do everything with confidence."'
- x = '"Friendships are made, not discovered."'
- y = '"Good ideas come free of charge."'
- z = '"In the middle of difficulty lies opportunity."'
- aa = '"A new challenge is near."'
- bb = '"To ever become a leader, one must first be a follower."'
- cc = '"Take advantage of your great imagination. It will serve you well."'
- dd = '"Skill comes from diligence."'
- ee = '"Birds are entangled by their feet and men by their tongues."'
- fortuneList = [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,bb,cc,dd,ee]
- listIndex = random.randrange(0 , 31)
- fortune = fortuneList[listIndex]
- lucky_1 = random.randrange(1 , 99)
- lucky_2 = random.randrange(1 , 99)
- lucky_3 = random.randrange(1 , 99)
- lucky_4 = random.randrange(1 , 99)
- lucky_5 = random.randrange(1 , 99)
- lucky_6 = random.randrange(1 , 99)
- luckyNumbersList = [lucky_1 , lucky_2 , lucky_3 , lucky_4 , lucky_5 , lucky_6]
- print('\n' + name + 's Fortune is: \n' + fortune)
- print('Your lucky numbers are ' + str(luckyNumbersList))
- playAgain()
- def playAgain():
- again = input('\n\nWould you like another fortune? ')
- tryAgain = again.lower()
- if (tryAgain == 'yes'):
- fortuneTeller()
- elif (tryAgain == 'no'):
- print('\nMay peace be with you ' + name)
- else:
- print('\nPlease enter YES or NO\n')
- playAgain()
- fortuneTeller()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement