Is any body looking at the first word games assignment? I feel like the course didn't really create a method to analyze the list of letters
and create a score. In the lecture the prof goes over one type of list and doesnt explain the type given in the assignment.
Is there something in particular that you want help with though? Which part doesn't make sense?
SCRABBLE_LETTER_VALUES = { 'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10 }
how do I interact with this list, how do I search for the value of for example "c"
the example shown in the lecture had the format, L = [['un', 'one'], ['deux', 'two']]
You can look up a value in a dictionary like that using []. So in the case above, SCRABBLE_LETTER_VALUES['c'] should be 3.
THank you very much!!
No problem. Feel free to ask more questions :)
Join our real-time social learning platform and learn together with your friends!