About 53,300,000 results
Open links in new tab
  1. Using the len () Function in Python

    The len() function in Python is a powerful and efficient tool used to determine the number of items in objects, such as sequences or collections. You can use len() with various data types, …

  2. 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.

  3. 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.

  4. What is Len in Python and How Does It Work?

    Oct 26, 2025 · What is the Len Function in Python? The len function in Python is a built-in utility that returns the number of items in a container, such as lists, tuples, strings, and dictionaries. …

  5. 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 …

  6. Understanding What is len in Python – A Complete Guide

    Oct 23, 2025 · Many developers start using len () without fully understanding its behavior or how to apply it across different data types. This article will clarify its purpose, show how to use len …

  7. Understanding `len ()` in Python - codegenes.net

    Nov 14, 2025 · What is len() in Python? The len() function in Python is a built - in function that returns the number of items in an object. It is a very straightforward function that takes a single …

  8. Understanding `len()` in Python: A Comprehensive Guide

    Mar 22, 2025 · In Python, many data structures such as strings, lists, tuples, sets, and dictionaries have a concept of length. The len() function returns an integer value representing the number …

  9. What is the Len Function in Python and How Can It Enhance Your …

    Among these essential tools is the `len` function, a simple yet powerful built-in feature that plays a crucial role in data manipulation and analysis.

  10. Python | Built-in Functions | len() | Codecademy

    May 23, 2022 · The len() function returns the number of items in an object. It is one of Python’s most commonly used built-in functions that calculates the length or size of various data types …