Pybites Logo

Classes Bite Exercises

Level Name Tags
B Make a class newbie classes
B Class with str newbie dunder methods classes
B Make a dataclass dataclasses newbie classes
B Complete a user class: properties and representation dunder methods properties classes __repr__ string manipulation dunder methods f-strings __str__
B Keep a list sorted upon insert bisect data structures classes __str__
I Write a user validation function exception handling classes namedtuple
I No promo twice, keep state in a class exception handling properties classes
I Create a multiplication table class of variable length exception handling numbers dunder methods classes
I Keep state in a class + make its instance callable dunder methods classes
I Subclass the dict built-in classes inheritance
I Oop fun at the zoo classmethod itertools classes __str__
I Complete a tox ini file parser class configparser tox properties classes string parsing string matching
I Multiple inheritance (__mro__) multiple inheritance __mro__ classes inheritance
I Add type hints to a class dataclasses type hinting classes
I Thumbs up for operator overloading exception handling classes emojis dunder methods operator overloading
I A simple document class properties classes annotations string method chaining
I Alternative constructors classmethod classes
A Abc's and class inheritance abstractmethod ABCs classes inheritance
A Building a karma app - implement the user class properties classes dunder methods operator overloading namedtuple
A Number guessing game class random games classes
A Write a score property properties classes
A Ninja rankings classes bisect heapq tuples dunder methods dataclasses
A Create a js-like dict object javascript classes dict inheritance
A Cached property decorator caching decorators properties classes
A Analysing @pythonbytes rss feed regular expressions classes max min Counter string matching feedparser type hinting namedtuple
A Scrape best programming books data wrangling classes beautifulsoup data cleaning books web scraping sorting
A Write tests for an account class pytest classes
A Test a number guessing game exception handling classes games mock.patch pytest
A Test a movie db class classes fixtures SQL sqlite3 movie data pytest
A Taxable income calculator typing finance properties classes dataclasses namedtuple
A Evaluate a bridge hand exception handling properties classes looping sorting enum