+ 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

14th Oct 2017, 8:08 AM
manoj Kumar
17 Respuestas
+ 15
https://code.sololearn.com/cgQC9kSu3TH0/?ref=app
14th Oct 2017, 2:10 PM
Vukan
Vukan - avatar
14th Oct 2017, 8:46 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 8
https://code.sololearn.com/cgul6SsQsWrf/?ref=app
15th Oct 2017, 2:43 AM
David Ashton
David Ashton - avatar
14th Oct 2017, 1:16 PM
Curly Fries
Curly Fries - avatar
+ 4
sum([ord(i)-96 for i in input()])
14th Oct 2017, 9:31 PM
Chrizzhigh
Chrizzhigh - avatar
15th Oct 2017, 8:08 AM
Stoyan Todorov
Stoyan Todorov - avatar
+ 3
https://code.sololearn.com/ceL82ZITuF2r/?ref=app
14th Oct 2017, 4:20 PM
Hiroki Masuda
Hiroki Masuda - avatar
+ 3
Here is mine. I assumed that your challenge is case insensitive. https://code.sololearn.com/WWFpNRurWA12/?ref=app
15th Oct 2017, 5:09 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
string split "" msplit filter m[i].test( [a-zA-Z]) msplit map nrochar(m[i])-nrochar(a)+1 sumstring = msplit reduce x + y
14th Oct 2017, 10:22 PM
ysraelcon
ysraelcon - avatar
+ 2
Here is my python code. Support uppercase too https://code.sololearn.com/c6iRKR28oE2x/?ref=app
15th Oct 2017, 4:07 AM
Gautam Kumar
+ 2
https://code.sololearn.com/c5k7huKB4yZp/?ref=app
15th Oct 2017, 4:12 AM
LunarCoffee
LunarCoffee - avatar
15th Oct 2017, 6:55 AM
Kartik
Kartik - avatar
15th Oct 2017, 10:52 AM
manoj Kumar
15th Oct 2017, 9:07 PM
Nayan Sharma
Nayan Sharma - avatar
0
Bushingo
20th Dec 2019, 5:01 PM
Lemejio Isack
Lemejio Isack - avatar