FAQ: Learn Python - Practice Makes Perfect - scrabble_score

faq

#1

This community-built FAQ covers the “scrabble_score” exercise in Codecademy’s lessons on Python.

FAQs for the Codecademy Python exercise scrabble_score:

Join the Discussion. We Want to Hear From You!

Have a new question or can answer someone else’s? Reply (reply) to an existing thread!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources about Python in general? Go here!

Want to take the conversation in a totally different direction? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account, billing, Pro, or Pro Intensive? Reach out to our support team!

None of the above? Find out where to ask other questions here!


#2

I used the following code to solve the scrabble exercise:

def scrabble_score(word):
word = word.lower()
result = 0
for i in word:
result += score[i]
return(result)

print(scrabble_score(“pizza”))

Which is shorter than the solution given. It makes me wonder now if my code is wrong or if I just found a shorter solution to the exercise.


#3

I had the same solution, and now I’m also wondering.