My awesome username part 1

My username is "skullblade". If A=1, B=2, C=3...Z=26, and I calculated the sum of the letters in "skullblade", what number would I get?


The answer is 99.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Brock Brown
Jan 4, 2015
1
2
3
4
5
decode = {}
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in xrange(len(alphabet)):
    decode[alphabet[i]] = i + 1
print sum([decode[c] for c in 'skullblade'])

Muhammad Usman
Sep 9, 2014

tedious solution

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...