Multiple ChoiceHard 30s
__hash__ and Mutability
Choose the best answer for: hashable objects
Options
- 1Mutable objects should not implement __hash__
- 2All objects are hashable since every object has a hash
- 3__hash__ is required for every class or it raises error
- 4__hash__ is only meaningful for integers, not others
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.