Skip to content

Conversation

@anuragrawattt
Copy link

This pull request addresses Issue #192 by updating the documentation to clarify that sets, like lists and dictionaries, are mutable and therefore cannot be used as dictionary keys.

The original sentence omitted "sets" in the second clause. The revised version now reads:

"Neither a list, a set, nor another dictionary can serve as a dictionary key, because lists, sets, and dictionaries are mutable."

This improves clarity for learners and aligns with Python’s behavior regarding hashable types.

Fixes #192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"sets" missing in dictionary keys restrictions verbiage (dict keys must be hashable)

1 participant