Loading…
The len function determines the number of items a list contains, counting any nested list as one element. Using the length of a list to control a loop's range ensures the loop functions correctly for lists of any size.
You have opened your free Studybank topics for this month.