main.py Load default template... 1 tile dict = { 'A': 1, 'B': 3, 'c': 3, 'D': 2, 'E': 1, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, O': 1, 'Y': 4, 'F': 4, 'G' : 2, 'H': 4, 'I': 1,...


Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value of a word is the sum of each tile's points added to any points provided by the word's placement on the game board.


Write a program using the given dictionary of letters and point values that takes a word as input and outputs the base total value of the word (before being put onto a board).


Ex: If the input is:


PYTHON


the output is:


14


main.py<br>Load default template...<br>1 tile dict = { 'A': 1, 'B': 3, 'c': 3, 'D': 2, 'E': 1,<br>'K': 5, 'L': 1, 'M': 3, 'N': 1,<br>'U': 1, 'V': 4, 'W': 4, 'X': 8,<br>O': 1,<br>'Y': 4,<br>'F': 4, 'G' : 2, 'H': 4, 'I': 1, 'J': 8,<br>'p': 3, 'Q': 10, 'R': 1, 's': 1, 'T': 1,<br>'z': 10 }<br>4<br>Type your code here. .<br>

Extracted text: main.py Load default template... 1 tile dict = { 'A': 1, 'B': 3, 'c': 3, 'D': 2, 'E': 1, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, O': 1, 'Y': 4, 'F': 4, 'G' : 2, 'H': 4, 'I': 1, 'J': 8, 'p': 3, 'Q': 10, 'R': 1, 's': 1, 'T': 1, 'z': 10 } 4 Type your code here. .

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here