[newbie/18.104.22.168] Computing value of a word?
nospam at nospam.com
Wed Feb 16 10:17:56 CET 2011
For a game, I need to go through a wordlist, and for each word,
compute its value, ie. a=1, b=2, etc.
So for instance, NewYork = 14 + 5 + 23 + 25 + 15 + 18 + 11 = 111.
Before I write the obvious While loop to go through each line in the
input text file, I was wondering if Python didn't already have some
function to perform this type of computation.
More information about the Python-list