+ 11
Challenge
Challenge-- find sum of string value If a=1, b=2 so on z=26 then take input from user and find sum of string characters ex: input=abcd a+b+c+d=1+2+3+4 output=10
17 Answers
+ 15
https://code.sololearn.com/cgQC9kSu3TH0/?ref=app
+ 8
https://code.sololearn.com/cgul6SsQsWrf/?ref=app
+ 4
sum([ord(i)-96 for i in input()])
+ 4
here's my solution https://code.sololearn.com/c8032fER2Q5I/?ref=app
+ 3
https://code.sololearn.com/ceL82ZITuF2r/?ref=app
+ 3
Here is mine. I assumed that your challenge is case insensitive.
https://code.sololearn.com/WWFpNRurWA12/?ref=app
+ 2
string split ""
msplit filter m[i].test( [a-zA-Z])
msplit map nrochar(m[i])-nrochar(a)+1
sumstring = msplit reduce x + y
+ 2
Here is my python code. Support uppercase too
https://code.sololearn.com/c6iRKR28oE2x/?ref=app
+ 2
https://code.sololearn.com/c5k7huKB4yZp/?ref=app
+ 1
Check this out🐍
https://code.sololearn.com/cDGrUN4HRNVk/?ref=app
+ 1
my answer in python
https://code.sololearn.com/cWFTaARXGlgO/?ref=app
+ 1
My attempt with python
https://code.sololearn.com/cTgyl5EJ3495/?ref=app
0
Bushingo