Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
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

8 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.

8 years ago
OpenStudy (shadowfiend):

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

8 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 }

8 years ago
OpenStudy (python):

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

8 years ago
OpenStudy (python):

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

8 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.

8 years ago
OpenStudy (python):

THank you very much!!

8 years ago
OpenStudy (shadowfiend):

No problem. Feel free to ask more questions :)

8 years ago
Can't find your answer? Make a FREE account and ask your own question, OR you can help others and earn volunteer hours!
Latest Questions
misty34: Second opinion? I think the answer is B??
2 hours ago 1 Reply 0 Medals
Wermin: mi
2 hours ago 0 Replies 0 Medals
misty34: Can you give me recipes to try?? I want to try some new foods.
1 hour ago 16 Replies 7 Medals
Kabbed: animeghoul help me please
3 hours ago 2 Replies 1 Medal