1. Home
  2. Data Science
  3. Python
  4. Which Python function returns the length of an object?

Added 16 Sep 2025

Which Python function returns the length of an object?

  1. count()
  2. length()
  3. len() Correct answer
  4. size()

Correct answer

C. len()

16 views

MCQSEXAM

Explanation

The len() function returns the number of items in an object like list, string, or tuple.

Reference

Asked in: GATE CS, UGC NET

https://docs.python.org/3/library/functions.html#len

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs