In Python .......... function returns the number of characters in string…
2024
In Python .......... function returns the number of characters in string argument.
- A.
Length
- B.
Len
- C.
L
- 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.