Search This Blog

2015/02/08

Find Your Lucky Number using Your Name

Here is python code that calculate lucky number from your name

Code:

from __builtin__ import str
print "*** Welcome to Forcast by Name ***"
Name = raw_input("What is your first name ? ").strip()

Meaning_Dict ={
               '1':
               "Attractive personality. Magnetic charm. Superman/superwoman like vitality and physical energy. Incredibly active and gregarious. Enjoys outdoor activities and sports. Has friends and individuals in powerful positions. Good government connections. Intelligent, spectacular, flashy and successful. A loyal number for love and relationships.",
              
               '2':
               "Feminine and soft, emotional temperament. Fluctuating moods but intuitive, and possibly even clairvoyant abilities. Ingenious nature and kind-hearted expression of feelings. Loves family, mother and home life. Night owl who probably needs more sleep. Success with the public and/or women generally. ",
              
               '3':
               "Sociable, optimistic number with fortunate destiny. Attracts opportunities without too much effort. Great sense of timing. Religious or spiritual inclinations. Naturally drawn to investigate the meaning of life. Philosophical insight. Enjoys travel and explore the world and different cultures. ",
              
               "4":
               "Volatile character with many peculiar aspects. Likes to experiment and test novel experiences. Forward thinking, with many extraordinary friends. Gets bored easily so needs plenty of inspiring activities. Pioneering, technological and creative. Wilful and obstinate at times. Unforeseen events in life may be positive or negative. ",
              
               "5":
               "Sharp-wit, quick thinking with great powers of speech. Extremely active life; always on the go and lives on nervous energy. Youthful outlook and never grows old. Looks younger than actual age. Young friends and humorous disposition. Loves reading and writing. Great communicator. ",
              
               "6":
               "Delightful and charming personality. Graceful and eye-catching personality who cherishes and nourishes friends. Very active social life. Musical or creative interests. Great money making opportunities as well as numerous love affairs are indicated. Career in the public eye is quite likely. Loves family but is often troubled other divided loyalties with friends. ",
              
               "7":
               "Intuitive, spiritual and self sacrificing nature. Easily duped by those who need help. Loves to dream of life's possibilities. Has healing powers. Dreams are revealing and prophetic. Loves the water and will have many journeys in life.  Spiritual aspirations dominate worldly desires. ",
              
               "8":
               "Hard-working, ambitious person with slow yet certain achievements. Remarkable concentration and self-sacrifice for a chosen or objective. Financially focused but generous when a person's trust is gained. Proficient in one's chosen field but is a hard taskmaster. Demands perfection and needs to relax and enjoy life more. ",
              
               "9":
               "Extraordinary physical drive, desires and ambition. Sports and outdoor activities are major keys to health.  Confrontational but likes to work and play really hard. Protects and defends family, friends and territory. Individual tastes in life but is also self absorbed. Needs to listen to others' advice to gain greater success in life. "
            }


Ruling_Planet = {
                 '1':'Sun',
                 '2':'Moon',
                 '3':'Jupiter',
                
                 '4':'Uranus',
                 '5':'Mercury',
                 '6':'Venus',
                
                 '7':'Neptune',
                 '8':'Saturn',
                 '9':'Mars',
                }

Lucky_Dict = {
        'A': '1',
        'I': '1',
        'Q': '1' ,
        'J': '1',
        'Y':'1',
       
        'B':'2',
        'K':'2',
        'R':'2',
       
        'C':'3',
        'G':'3',
        'L':'3',
        'S':'3',
       
        'D':'4',
        'M':'4',
        'T':'4',
       
        'E':'5',
        'H':'5',
        'N':'5',
        'X':'5',
       
        'U':'6',
        'V':'6',
        'W':'6',
       
        'O':'7',
        'Z':'7',
       
        'F':'8',
        'P':'8'       
    }
luckyNo = 0
for c in Name.upper():
    luckyNo = luckyNo +  int(Lucky_Dict[c])
   
while len(str(luckyNo)) !=1:
    #print str(luckyNo)
    num =0  
    for x in str(luckyNo):
        num = num + int(x)
        luckyNo = str(num)  
   
   


print "Your Lucky No is:" + str(luckyNo)
print "**************FORCAST**********************"
print "What Astrologer Say About You:" + Meaning_Dict[luckyNo]
print "Ruling Planet:" + Ruling_Planet[luckyNo]

year_num = int(luckyNo) +  8//for calender year 2015

while len(str(year_num)) !=1:
    #print str(luckyNo)
    num =0  
    for x in str(year_num):
        num = num + int(x)
        year_num = str(num) 
       
print "Your Year No:" + str(year_num)


Output:


*** Welcome to Forcast by Name ***
What is your first name ? sangram desai
Your Lucky No is:6

**************FORCAST**********************

What Astrologer Say About You:Delightful and charming personality. Graceful and eye-catching personality who cherishes and nourishes friends. Very active social life. Musical or creative interests. Great money making opportunities as well as numerous love affairs are indicated. Career in the public eye is quite likely. Loves family but is often troubled other divided loyalties with friends.

Ruling Planet:Venus

Your Year No:5

Note:This forecast just fun and nothing more to take it seriously









No comments:

Post a Comment