A

Admin • 833.24K Points
Coach

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

  • (A) Returns the number of items in an object
  • (B) Returns the memory size of the object
  • (C) Deletes an object
  • (D) Converts object to string
  • Correct Answer - Option(A)
  • Views: 27
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

len() gives the count of items in lists, tuples, strings, and other iterable objects.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.