|Bite||Description & Tags|
|Bite 12. Write a user validation function||
Create a function that takes a username and checks for ...
classes exception handling namedtuple
|Bite 24. ABC's and class inheritance||
ABC's or Abstract Base classes are great to enforce a ...
ABCs abstractmethod classes inheritance
|Bite 25. No promo twice, keep state in a class||
In this bite a real world scenario: PyBites has a ...
classes exception handling properties
|Bite 34. Building a Karma app - implement the User class||
This Bite is about implementing a User class that keeps ...
classes dunder methods namedtuple properties
|Bite 42. Number Guessing Game Class||
In this Bite you implement a Game class to perform ...
classes games random
|Bite 59. Create a multiplication table class of variable length||
Danny does not like rote learning (nor do we!). He ...
classes dunder methods exception handling numbers
|Bite 71. Keep state in a class + make its instance callable||
In this Bite you write a small class to keep ...
classes dunder methods
|Bite 85. Write an advanced property||
After Bite 19. Write a simple property let's write a ...
|Bite 95. Subclass the dict built-in||
In this Bite you will subclass the dict built-in to ...
|Bite 138. OOP fun at the Zoo||
Finish the Animal class below adding one or more class ...
classes classmethod itertools __str__
|Bite 154. Write your own Data Class||
As you might have noticed we are now on Python ...
data classes data structures hashable sorting type hinting
|Bite 168. Ninja Rankings||
PyBites is starting a campaign to try and pair up ...
bisect classes data classes dunder methods heapq tuples
|Bite 166. Complete a tox ini file parser class||
The INI file format is an informal standard for configuration ...
classes configparser properties string matching string parsing tox
|Bite 167. Complete a User class: properties and representation dunder methods||
In this Bite you are presented with another class, User ...
classes dunder methods f-strings properties __repr__ __str__ string manipulation
|Bite 174. String manipulation and metrics||
This bite will get you to play around with creating ...
Counter data classes list comprehensions properties string formatting string manipulation translate
|Bite 181. Keep a list sorted upon insert||
Complete the add method of the OrderedList class which takes ...
bisect classes data structures __str__
|Bite 187. Actor/actress age at movie release||
Ever wondered how old an actor/actress was in a particular ...
data classes dateutil f-strings
|20||Object Oriented Programming Fun||Hi Pythonistas, a new week, a new 'bite' of Python coding! This week we will let you experiment with Object Oriented Programming, an important skill and fundamental building block of (everthing-is-an-object) Python. Enjoy!|
|24||Use Dunder / Special Methods to Enrich a Class||Hi Pythonistas, a new week, a new 'bite' of Python coding! We wrote an article for Dan Bader's Python blog: Enriching Your Python Classes With Dunder (Magic, Special) Methods. We hope you like it. To put dunders into practice we dedicate this week's code challenge to it.|