Hi, i need some help with a program that calculates the numeric value of a name. The value of a name is determined by summing up the values of the letters of the name where 'a' is 1, 'b' is 2, 'c' is 3 etc., up to 'z' being 26. For example, the name "Zelle" would have the value 26+5+12+12+5=60. Write a program that calculates the numeric value of a complete name such as "John Marvin Zelle". I can get it to work for one name but for a complete name i am lost. Here is my code so far:
import string
import math
def main():
word=raw_input('Enter your name:')
sum=0
word=string.upper(word)
s=string.split(word)
print s
for l in word:
sum=sum+ord(l)-64
print'The numeric value of your name:',sum
main()
any help would be appreciated