Back to task

120 symbols python3
Tue Jan 10 11:52:07 2017 vockyX
res=0
for i in input():
    if i.islower():
        res+=ord(i)-96
    if i.isupper():
        res+=ord(i)-64
print(res)


Leave a comment

Parsed as Markdown

Login to leave a comment