A community for students.
Here's the question you clicked on:
 0 viewing
python
 6 years ago
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
python
 6 years ago
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

This Question is Closed

python
 6 years ago
Best ResponseYou've already chosen the best response.0and create a score. In the lecture the prof goes over one type of list and doesnt explain the type given in the assignment.

shadowfiend
 6 years ago
Best ResponseYou've already chosen the best response.0Is there something in particular that you want help with though? Which part doesn't make sense?

python
 6 years ago
Best ResponseYou've already chosen the best response.0SCRABBLE_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 }

python
 6 years ago
Best ResponseYou've already chosen the best response.0how do I interact with this list, how do I search for the value of for example "c"

python
 6 years ago
Best ResponseYou've already chosen the best response.0the example shown in the lecture had the format, L = [['un', 'one'], ['deux', 'two']]

shadowfiend
 5 years ago
Best ResponseYou've already chosen the best response.0You can look up a value in a dictionary like that using []. So in the case above, SCRABBLE_LETTER_VALUES['c'] should be 3.

shadowfiend
 5 years ago
Best ResponseYou've already chosen the best response.0No problem. Feel free to ask more questions :)
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.