Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # How to Calculate Your Name Number in Numerology
- # Min Kim
- # 2014.10.21
- name = input("Full Name: ")
- l = len(name)
- sum = 0
- i = 0
- j = 0
- n = 0
- c = 0
- namenumber = []
- for i in range(0,l):
- tmp = 0
- c = name[i].upper()
- if (ord(c)>= 65 and ord(c) <= 73):
- tmp = ord(c) - 64
- elif (ord(c)>= 74 and ord(c) <= 82):
- tmp = ord(c) - 73
- elif (ord(c)>= 83 and ord(c) <= 90):
- tmp = ord(c) - 82
- sum = sum + tmp
- namenumber.append(tmp)
- print ("\nName: ",name)
- print ('Number: ', end ="")
- for i in namenumber:
- if i == 0:
- print(" ", end = "")
- else:
- print(i, end = "")
- print ('\n\nTotal Name Number: ', sum)
- sumstr = str(sum)
- ll = len(sumstr)
- for j in range(0,ll):
- n = n + int(sumstr[j])
- m = str(n)
- f_sum = 0
- if (n < 10 or n == 11 or n == 22):
- f_sum = n
- else:
- for lm in range(0,len(m)):
- f_sum = f_sum + int(m[lm])
- print ()
- print ('Name Number: ',f_sum)
- print ()
- print ('Associations: ', end="")
- if (f_sum == 1):
- ass = ("Initiating Action,Pioneering,Leading,Independant,Attaining,Individual")
- elif (f_sum == 2):
- ass = ("Cooperation,Adaptability,Consideration of others,Partnering,Mediating")
- elif (f_sum == 3):
- ass = ("Expression,Verbalization,Socialization,The Arts,The Joy of Living")
- elif (f_sum == 4):
- ass = ("A Foundation,Order,Service,Struggle against limits,Steady Growth")
- elif (f_sum == 5):
- ass = ("Expansiveness,Visionary,Adventure,The constructive use of freedom")
- elif (f_sum == 6):
- ass = ("Responsibility,Protection,Nurturing,Community,Balance,Sympathy")
- elif (f_sum == 7):
- ass = ("Analysis,Understanding,Knowledge,Awareness,Studious,Meditating")
- if (f_sum == 8):
- ass = ("Practical endeavors,Status oriented,Power-seeking,High-material goals")
- elif (f_sum == 9):
- ass = ("Humanitarian,Giving nature,Selflessness,Obligations,Creative expression")
- elif (f_sum == 11):
- ass = ("Higher spiritual plane,Intuitive,Illumination,Idealist,A dreamer")
- elif (f_sum == 22):
- ass = ("The Master Builder,Large endeavors,Powerful force,Leadership")
- ass = ass + ','
- ass_lst = []
- s = 0
- for i in range(len(ass)):
- if ass[i] == ',':
- ass_lst.append(ass[s:i])
- s = i+1
- ass_lst.sort(key=len)
- for i in range (len(ass_lst)):
- if i > 0:
- print (' '*14, end = "")
- print(ass_lst[i].center(len(ass_lst[-1])))
- input ("\nPlease Enter to Exit")
- #END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement