def word_score(word, input_letters, questions=<NUM_LIT:0>):
score = <NUM_LIT:0><EOL>bingo = <NUM_LIT:0><EOL>filled_by_blanks = []<EOL>rack = list(input_letters)  <EOL>for letter in word:<EOL><INDENT>if letter in rack:<EOL><INDENT>bingo += <NUM_LIT:1><EOL>score += letter_score(letter)<EOL>rack.remove(letter)<EOL><DEDENT>else:<EOL><INDENT>filled_by_blanks.append(letter_score(letter))<EOL><DEDENT><DEDENT>for blank_score in sorted(filled_by_blanks, reverse=True):<EOL><INDENT>if questions > <NUM_LIT:0>:<EOL><INDENT>score += blank_score<EOL>questions -= <NUM_LIT:1><EOL><DEDENT><DEDENT>if bingo > <NUM_LIT:6>:<EOL><INDENT>score += <NUM_LIT:50><EOL><DEDENT>return score<EOL>
Checks the Scrabble score of a single word.

    Args:
        word: a string to check the Scrabble score of
        input_letters: the letters in our rack
        questions: integer of the tiles already on the board to build on

    Returns:
        an integer Scrabble score amount for the word