Q. Which built-in function counts items in a list?
Solution:
len() counts the number of items in a list, e.g., len([1, 2, 3]) is 3.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
len() counts the number of items in a list, e.g., len([1, 2, 3]) is 3.
Strengthen Your Practice with our comprehensive question bank.