ATTITUDE Equals 100%

A -> 1
B -> 2
...
Z -> 26

Attitude
-> 1 + 20 + 20 + 9 + 20 + 21 + 4 + 5 = 100

IN

Hard work

OUT

98

IN

Knowledge

OUT

96

IN

Attitude

OUT

100

IN

JAGC

OUT

21

IN

Just Another Golf Coding

OUT

243

IN

qguyvndbelharjksoxticmzpwf

OUT

351
Login to submit solution


60 symbols python3 failed test 1 Code error

File "./code", line 2 ^ SyntaxError: unexpected EOF while parsing

Fri Nov 11 06:42:54 2016 Sait2000
print(sum((64<d<91)*(d-64)for d in map(ord,input().upper()))
120 symbols perl failed test 1 Code error

Can't modify constant item in scalar assignment at ./code line 2, near "for " syntax error at ./code line 2, near "):" Execution of ./code aborted due to compilation errors.

Tue Jan 10 11:51:46 2017 vockyX
res=0
for i in input():
    if i.islower():
        res+=ord(i)-96
    if i.isupper():
        res+=ord(i)-64
print(res)

View all solutions