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

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.

OpenStudy (shadowfiend):

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

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 }

OpenStudy (python):

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

OpenStudy (python):

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

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.

OpenStudy (python):

THank you very much!!

OpenStudy (shadowfiend):

No problem. Feel free to ask more questions :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
ARTSMART: Art!
2 hours ago 4 Replies 3 Medals
Jasonisyours: What were the key causes of the French Revolution in 1789?
3 hours ago 2 Replies 4 Medals
PureSoulless: Why is the word "Pedophile" always censored in yt vids?
1 day ago 3 Replies 0 Medals
Jalli: What's 58x3634u00b07
20 hours ago 6 Replies 3 Medals
arriya: who wanna play roblox
1 day ago 5 Replies 1 Medal
brianagatica14: Any artist on here?
3 days ago 7 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!