Question discussion

Which built-in Python function returns the number of items in a list?

2179Medium DSSSB TGT Computer Science 0 replies 1 views
0

Which built-in Python function returns the number of items in a list?

  • Asize()
  • Bcount()
  • Clength()
  • Dlen()
Correct answer: D

Explanation

len() returns the number of items in a sequence such as a list, tuple or string.

Discussion 0

Nobody has replied yet. Start the discussion!