Python · OOP: Classes & Inheritance
What does this print? ``` class P: def __repr__(self): return "P()" print([P(), P()]) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Free to start — download the app or use it in your browser.