# Scrabble problem # Function to return the value of a letter def LetterValue(Letter): Letter = Letter.upper() # If the letter is found at an index in the string return the points if "EAIONRTLSU".find(Letter) >= 0: return 1 elif "DG".find(Letter)>= 0: return 2 elif "BCMP".find(Letter) >= 0: return 3 elif "FHVWY".find(Letter) >= 0: return 4 elif Letter == "K": return 5 elif "JX".find(Letter) >= 0: return 8 elif "QZ".find(Letter) >= 0: return 10 else: return 0 # Function to return the value of a word def Points(Word): Total = 0 # Get value of each letter for Character in range(len(Word)): Total = Total + LetterValue(Word[Character]) return Total # Main program print(Points("Hello"))