About 105,000 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 returns the number of characters in the string.

  2. Using the len () Function in Python

    The len() function in Python returns the number of items in an object, such as strings, lists, or dictionaries. To get the length of a string in Python, you use len() with the string as an argument, like …

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

    Jun 23, 2025 · Learn how to use the Python len () function to quickly find the size of strings, lists, dictionaries, and other data structures. Discover practical examples and common mistakes to avoid …

  4. Python len () Function - GeeksforGeeks

    Jul 23, 2025 · The len () function in Python is used to get the number of items in an object. It is most commonly used with strings, lists, tuples, dictionaries and other iterable or container types.

  5. Python len () Function - Programiz

    In this tutorial, we will learn about the Python len () function with the help of examples.

  6. Python len ()

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

  7. Python len Function - Complete Guide - ZetCode

    Apr 11, 2025 · This comprehensive guide explores Python's len function, which returns the number of items in a container. We'll cover built-in types, custom objects, and practical examples of counting …