Help

homework
python

#1

Write a Python program that allows the user to evaluate the score of any word in a game of Scrabble.
For this exercise, assume that the value of any character is the ord() value minus 97.


#2

First criterion is that Scrabble is played with letters forming singular words.

Second criterion is that letters in computer terms are characters and are codified, usually in ASCII which has evolved into Unicode, but the base ordinals are unchanged.

>>> ord('A')
65
>>> ord('Z')
90
>>> 

That tells us the instructions imply lowercase letters, and not uppercase since there should not be negative score values. The lowercase character codes are plus 32 of their uppercase counterparts, so,

>>> ord('a')
97
>>> ord('z')
122
>>> 

This is where it gets arbitrary but the mechanics should be fairly straight forward from here.