About 325,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

    Nov 16, 2024 · In this tutorial, you’ll learn when to use the len() Python function and how to use it effectively. You’ll discover which built-in data types are valid arguments for len() and which …

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

  5. Python len()

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

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

  7. Mastering the `len ()` Function in Python - CodeRivers

    Jan 26, 2025 · The len() function in Python is used to return the number of items in an object. It is applicable to a wide range of built-in data structures, such as strings, lists, tuples, sets, and …

  8. len () Built-in Function - Python Examples

    Python len () built-in function returns an integer representing the number of items in the given iterable. In this tutorial, you will learn the syntax of len () function, and then its usage with the …

  9. Understanding the `len()` Function in Python - codegenes.net

    Jun 19, 2025 · The len() function in Python is used to return the length (the number of items) of an object. The object can be a sequence (such as strings, lists, tuples) or a collection (such as …

  10. Using the len() Function in Python: A Comprehensive Guide

    Nov 27, 2024 · In this guide, we’ll dive deep into understanding how the len() function works, its versatility across data types, and practical examples to make the most of it in your Python …