Answer to Question #327889 in Python for chinna

Question #327889

pager:


input:

abde(1+2+4+5)

output:

12


input:

XYZ

output:

75


1
Expert's answer
2022-04-12T16:15:28-0400
s = input("Input: ")
temps = s.lower()
sum = 0
for i in range(len(s)):
    sum = sum + (ord(temps[i])-96)
print("Output:")
print(sum)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS