For the Scrabble Project/Python 3:
When attempting the last portion of part 15, where we are to make our letter_to_points dictionary able to handle lower case inputs as well, I attempted to do so and encountered an error without a Traceback.
What I did:
letters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
points = [1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 4, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10]
for letter in letters:
letter.append(letter.lower())
points *= 2
print(letters)
print(points)
After running, nothing happens leaving me confused. There’s nothing on the console, its just completely empty and the 2 print statements don’t even run.
Would appreciate if someone could help me on this.