Python “Magic” Methods (Part 2)

Let's continue our exploration of Python's magic methods in this second part of the series. This part will focus on numbers and containers, i.e., collections. You can read the first part here.

Container-Related Methods

Python provides the usual containers, e.g., lists, sets, and dictionaries. You can use the following methods when you want to implement your own.

CategoriesUncategorized