Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
sum of strings
+1
Author: manoj Kumar
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
input=input("enter your string: ")
print (input)
sum=0
for i in input:
sum+=ord(i)-96
print ("the sum is "+ str(sum))
Enter to Rename, Shift+Enter to Preview
OUTPUT