Skip to content

Instantly share code, notes, and snippets.

@s1ider
Created February 9, 2012 16:12
Show Gist options
  • Save s1ider/1780859 to your computer and use it in GitHub Desktop.
Save s1ider/1780859 to your computer and use it in GitHub Desktop.
Word value calculator
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