# -*- coding: utf-8 -*-
"""
Created on Thu Oct 27 00:00:32 2016

@author: ruialberto
"""

"""
Problem 1 - Word Scores
"""

def getWordScore(word, n):
    """
    Returns the score for a word. Assumes the word is a valid word.

    The score for a word is the sum of the points for letters in the
    word, multiplied by the length of the word, PLUS 50 points if all n
    letters are used on the first turn.

    Letters are scored as in Scrabble; A is worth 1, B is worth 3, C is
    worth 3, D is worth 2, E is worth 1, and so on (see SCRABBLE_LETTER_VALUES)

    word: string (lowercase letters)
    n: integer (HAND_SIZE; i.e., hand size required for additional points)
    returns: int >= 0
    """
    soma_pontos = 0
    
    for letra in word:
        soma_pontos = soma_pontos + SCRABBLE_LETTER_VALUES[letra]
        