MediumScenarioOOP and design
How would you make an object usable in a for loop?
This answer is part of Pro
14 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat is operator overloading in Python?Next How would you implement a thread-safe counter class?