all AI news
Python "magic" methods - part 2
Oct. 26, 2023, 9:02 a.m. | Nicolas Frankel
DEV Community dev.to
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.
Common methods
Containers have a size. Python defines two methods to implement to return the number of items in a …
containers exploration focus lists magic numbers part python series
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Senior Data Engineer
@ Quantexa | Sydney, New South Wales, Australia
Staff Analytics Engineer
@ Warner Bros. Discovery | NY New York 230 Park Avenue South