In Python .......... function returns the number of characters in string…

2024

In Python .......... function returns the number of characters in string argument.

  1. A.

    Length

  2. B.

    Len

  3. C.

    L

  4. D.

    Numchar

Attempted by 146 students.

Show answer & explanation

Correct answer: B

In Python, the built-in function len() returns the number of characters in a string (or elements in a collection).

It computes the length of the sequence, making it the correct choice.

Explore the full course: Hpsc Pgt Computer Science