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

2024

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

Answer: B. LenIn 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,…

  1. A.

    Length

  2. B.

    Len

  3. C.

    L

  4. D.

    Numchar

Attempted by 399 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

Loading lesson…