What Can Be a Dictionary Key?
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
You try to use a list of coordinates as a dictionary key and Python raises an error saying the type is unhashable. Explain what hashable means, why dictionary keys must be hashable, and how to fix this.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.