About 18,800,000 results
Open links in new tab
  1. Using the len() Function in Python – Real Python

    Nov 16, 2024 · 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 …

  2. Python len() Function - W3Schools

    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. Required. An object. Must be a …

  3. Python len() Function - GeeksforGeeks

    Apr 15, 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 …

  4. Python len()

    Summary: in this tutorial, you will learn how to use the Python len() function to get the number of items of an object. The len() function returns the number of items (length) of an object. Here’s …

  5. How to use len() in Python | note.nkmk.me - nkmk note

    Jan 27, 2024 · In Python, the built-in len() function returns the length (the number of items) of objects of various types, such as lists and strings. For more details, including handling two …

  6. len() in Python - Built-In Functions with Examples - Dive Into Python

    The len() function in Python is a built-in function that returns the number of items in a container, such as a string, list, tuple, dictionary, etc. It calculates the length of the object and is …

  7. [Complete Guide to Python's len() Function] In-Depth …

    May 2, 2025 · Python’s len() function is a built-in function that returns the length or number of elements in a sequence or mapping type. It is extremely easy to use and follows this syntax: …

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

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

    Mar 22, 2025 · In the realm of Python programming, the len() function is a fundamental and incredibly useful built - in tool. Whether you are a novice coder just starting out or an …

  10. What is len() in Python? How to Use the len() Function to Find …

    Feb 24, 2022 · Python is no different because you can use the built-in len() function to get the length of a string, tuple, list, dictionary, or any other data type. In this article, I'm going to show …

  11. Some results have been removed
Refresh