A

Admin • 832.27K Points
Coach

Q. What does the `len()` function return in Python?

Code:
print(len("Python"))
  • (A) 5
  • (B) 6
  • (C) 7
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`len()` returns the number of characters in the string. 'Python' has 6 characters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.