Question: Write a program that takes any string of upper case letters and converts it to the summation of the ascii equivalent values of the string.

Write a program that takes any string of upper case letters and converts it to the summation of the ascii equivalent values of the string. For example, if the string is “AB”, the program returns the sum of the ascii value of A plus the sum of the ascii value of B. The ascii value of A is 65.

Note: you cannot hardcode the ascii values of all the letters and use them.

Step by Step Solution

3.37 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python program that takes a string of uppercase letters and calculates the sum of their A... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!