We won't do your homework for you. We have our own work and schoolwork to do. What we WILL do is help you along. Let's break down this program and define an algorithm:
step 1 - prompt user for name
step 2 - save name into a string variable
step 3 - separate string into characters
step 4 - traverse the string and look at each character individually
step 5 - convert each character to its numerical "equivalent"
step 6 - use an accumulator variable and increment it each time we evaluate a character
step 7 - output the accumulator variable as the final sum
Does that make sense to you? See if you can come up with some code converting that algorithm into python. We'll then be more than happy to help you further, but you have to show us effort on your part.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 163
The Queen of DaniWeb
Offline 13,646 posts
since Feb 2002