unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn Python

OOP

15 questions

OutputEasy
Class vs instance attribute lookup
Multiple choiceEasy
__repr__ vs __str__
Multiple choiceEasy
Role of __init__ and self
VocabularyEasy
What __init__ does
OutputMedium

Sign in to save your progress.

Mutable class attribute shared state
Multiple choiceMedium
What @dataclass generates
OutputMedium
super().__init__ in subclass
OutputMedium
Operator overloading with __add__
VocabularyMedium
__repr__ vs __str__
VocabularyMedium
classmethod vs staticmethod
VocabularyMedium
What super() does
OutputHard
Shadowing a class attribute via assignment
OutputHard
Method resolution with super() chain
Multiple choiceHard
__eq__ and its effect on __hash__
VocabularyHard
What __enter__ and __exit__ do