Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 63 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
JustKOI: a poem just becauuuse...
2 hours ago 5 Replies 10 Medals
madz2345: random stuff from my sketchbook. rate them :0
26 minutes ago 34 Replies 11 Medals
Fredyy: Do you all im doing better!!!pls sub it helps alot!!! thx
38 minutes ago 16 Replies 6 Medals
Tyrun: What y'all think of these lyrics. its sad rap
2 hours ago 10 Replies 2 Medals
lovelygirl13: i made a rick and morty collage
51 minutes ago 24 Replies 9 Medals
DatBoiAYD: art
15 hours ago 14 Replies 6 Medals
Sharkattack123: Congrats on BLUE DEATHHHHHHHH
2 hours ago 17 Replies 6 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!