Event emitter basics
Implement an EventEmitter class with subscribe/emit/unsubscribe functionality.
Design Twitter Feed
Implement a Twitter class with postTweet, getNewsFeed, follow, and unfollow methods.
Observer pattern lite
Implement a simple Subject class supporting subscribe, unsubscribe, and notify observers.
Playing card class
Design a PlayingCard class with suit, rank, color, and equality/comparison magic methods.
Seat Manager Design
Implement a SeatManager class that supports reserving the smallest available seat and unreserving seats.
Showing 1–5 of 5 challenges · OOP & Classes
OOP & Classes — Python coding challenges
What you will find here
This page lists oop & classes challenges — real Python problems you solve in the browser IDE with instant test feedback. Each challenge includes a clear brief, starter code, and automated checks.
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.