About 180,000 results
Open links in new tab
  1. A Guide to the Python len function - len(x) examples

    Aug 7, 2017 · len () is a built-in function in Python 3. This method returns the length (the number of items) of an object. It takes one argument x . Arguments It takes one argument, x . This argument …

  2. Can someone help with the len function - Python - The freeCodeCamp …

    Dec 21, 2024 · len (text)-1 returns the total number of characters in the string you provided minus by 1, which is 10. Hence text [10], remember that a string is an array of characters, and that index starts …

  3. Matrix multiplication in pythonwithout numpy - Python - The ...

    Sep 20, 2020 · Python 2 is dead. The difference in versions isn’t ‘affecting matrix multiplication’; the difference in version is affecting the shape of the multiply indexed array.

  4. Learn String Manipulation by Building a Cipher - Step 7 - Python - The ...

    Apr 5, 2025 · Tell us what’s happening: You can access the number of characters in a string with the built-in len () function. Modify your existing print () call by passing len (text) instead of text [-1].

  5. Question about len() in problem - Python - The freeCodeCamp Forum

    Jan 3, 2023 · I am working on a Python problem for an online course. I need to extract floats from a .txt file and find the average of them; however, when I print the length from the floats it gives me 7. The …

  6. Build an RPG Character - Python - The freeCodeCamp Forum

    Nov 20, 2025 · Tell us what’s happening: I am stuck on verifying the length of character name I know that the len() function checks a variable string and outputs the number of characters in the variable …

  7. Learn String Manipulation by Building a Cipher - Step 68 - Python

    Nov 27, 2024 · Learn String Manipulation by Building a Cipher - Step 68 Python joythecoder November 27, 2024, 8:53am 1

  8. Learn String Manipulation by Building a Cipher - Step 68 - Python

    May 12, 2024 · Learn String Manipulation by Building a Cipher - Step 68 Python Annmademilkshake May 12, 2024, 4:58am 1

  9. Learn String Manipulation by Building a Cipher - Step 63 - Python

    Jan 6, 2024 · The instruction in the step 63 is clearly given. Call your function passing text and custom_key as the arguments. Store the return value of the function call in a variable called …

  10. Learn Regular Expressions by Building a Password Generator - Step 61

    Apr 24, 2024 · This step has been updated. I suggest you to clear the browser cache. The updated instructions are: Instead of using a loop and a counter variable, you can achieve the same result with …