Python · OOP: Properties, Methods & Data Classes
Your class defines __len__, __getitem__, and __iter__ but does NOT inherit from list. Code that expects a sequence still works on it. What principle is this?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
