All challenges
Multiple ChoiceHard 30s

__hash__ and Mutability

Choose the best answer for: hashable objects
Options
  1. 1Mutable objects should not implement __hash__
  2. 2All objects are hashable since every object has a hash
  3. 3__hash__ is required for every class or it raises error
  4. 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.

Play this in a 3-minute battle