Created
February 9, 2012 16:12
-
-
Save s1ider/1780859 to your computer and use it in GitHub Desktop.
Word value calculator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
word = input('say something: ') | |
value = 0 | |
for char in word.upper(): | |
value += ord(char) - 64 | |
print("Your value is {}".format(value)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment