On Wed, 16 Feb 2011 01:27:06 -0800, Chris Rebert <c...@rebertia.com>
wrote:
>A = ord('a') - 1
>for line in your_file:
>    word = line.strip().lower()
>    score = sum(ord(letter)-A for letter in word)

Thanks much Chris.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to