Companies Home Search Profile

Python's len() Function

Focused View

Christopher Trudeau

24:49

130 View
  • 512 01 intro.mp4
    01:45
  • 512 02 len.mp4
    07:21
  • 512 03 usage.mp4
    05:09
  • 512 04 third.mp4
    05:32
  • 512 05 dunder.mp4
    04:18
  • 512 06 sum.mp4
    00:44
  • len.pdf
  • len sample code.zip
  • 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
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Christopher Trudeau
    Christopher Trudeau
    Instructor's Courses

    Christopher 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:

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 6
    • duration 24:49
    • Release Date 2023/01/05

    Courses related to Python