The function used to find the length of a list in Python is
Question and options
The function used to find the length of a list in Python is
- size()
- count()
- length()
- len()
Answer and explanation
Correct answer: D - len()
len(list) returns the number of items in a Python list. count() counts occurrences of a value.
Practice for these exams
-
CUSAT CAT M.Sc. Forensic Science
-
Uttarakhand Judicial Services
Subject revision