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
Python program that takes a string of uppercase letters and calculates the sum of their A... View full answer
Get step-by-step solutions from verified subject matter experts
