I saw this was in a earlier post, but I need some addition help with it.
I need help please to write this program. Numerologists claim to be able to determine a person's character traits based on the "numeric value" of a name. The value of a name is determined by summing up the vaules of the letters of the name where 'a' is 1, 'b' is 2, 'c' 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 single name provided as input.
I need something that works off of this...
import string
def main():
print"This program calculates the numeric value of a name"
print
message = raw_input("Enter name:")
for ch in message:
lower = string.lower(ch)
num = ord(lower)-96
I can't figure out how to add the ords together.