Python's len() Function
Christopher Trudeau
24:49
Description
In many situations, you’ll need to find the number of items stored in a data structure. Python’s built-in function len() is the tool that will help you with this task.
There are some cases in which the use of len() is straightforward. However, there are other times when you’ll need to understand how this function works in more detail and how to apply it to different data types.
What You'll Learn?
- Find the length of built-in data types using
len()
- Use
len()
with third-party data types - Provide support for
len()
with user-defined classes
More details
User Reviews
Rating
Christopher Trudeau
Instructor's CoursesChristopher has a passion for the Python language and writes for Real Python. He is a consultant who helps advise organizations on how to improve their technical teams. Christopher is a strong advocate for automation throughout the delivery process and the power of small teams with well defined goals.
You can find Christopher here:

Real Python
View courses Real Python- language english
- Training sessions 6
- duration 24:49
- Release Date 2023/01/05