58,600 results
Open links in new tab
  1. Python len () Function - W3Schools

    Definition and Usage The len () function returns the number of items in an object. When the object is a string, the len () function …

  2. Using the len () Function in Python – Real Python

    Nov 16, 2024 · In this tutorial, you'll learn how and when to use the len () Python function. You'll also learn how to customize your …

  3. Python len() Function - GeeksforGeeks

    Jul 1, 2026 · len () function returns the number of items present in an object. It can be used with strings, lists, tuples, dictionaries, …

  4. len () Function in Python (With Examples)

    Oct 10, 2026 · Every output here comes from Python 3.12.5 in the Windows Command Prompt, with sample data built around US …

  5. len () | Python’s Built-in Functions – Real Python

    In this tutorial, you'll learn how and when to use the len () Python function. You'll also learn how to customize your class definitions …

  6. Python len(): A Quick Guide to Counting Elements in Python

    Jun 23, 2025 · Learn how to use Python len () to count elements in strings, lists, and more. See examples, common errors, and how …

  7. Python __len__ () magic method - GeeksforGeeks

    Jul 23, 2025 · Python __len__ is one of the various magic methods in Python programming language, it is basically used to …

  8. Beginner Python Tutorial 28 - len () Function - YouTube

    Apr 22, 2020 · Start your software dev career - https://calcur.tech/dev-fundamentals 💯 FREE Courses (100+ hours) - …

  9. Python len () Function - Online Tutorials Library

    Passing a list to the len () function returns the number of items available in that list. The code below demonstrates how to get a total …

  10. Python len ()

    In this tutorial, you will learn how to use the Python len () function to get the number of items of an object.