OpenStudy (python):

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

6 years ago
OpenStudy (python):

and create a score. In the lecture the prof goes over one type of list and doesnt explain the type given in the assignment.

6 years ago
OpenStudy (shadowfiend):

Is there something in particular that you want help with though? Which part doesn't make sense?

6 years ago
OpenStudy (python):

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 }

6 years ago
OpenStudy (python):

how do I interact with this list, how do I search for the value of for example "c"

6 years ago
OpenStudy (python):

the example shown in the lecture had the format, L = [['un', 'one'], ['deux', 'two']]

6 years ago
OpenStudy (shadowfiend):

You can look up a value in a dictionary like that using []. So in the case above, SCRABBLE_LETTER_VALUES['c'] should be 3.

6 years ago
OpenStudy (python):

THank you very much!!

6 years ago
OpenStudy (shadowfiend):

No problem. Feel free to ask more questions :)

6 years ago
Similar Questions: