Q. Which built-in function counts items in a list?

A
append()
B
add()
C
len()
D
define()
Solution:

len() counts the number of items in a list, e.g., len([1, 2, 3]) is 3.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!