Late Arrivals & List Length: link to exercise


Late Arrivals & List Length: link to exercise


We could write a number like 4 to describe the length of the suitcase list, but we’re programmers now, and that’s bad practice! The list_length variable should update with the length of our list so we don’t have to manually change it each time we add or delete an item!
To get the number of items in a list we use a familiar built-in function, len(), like this: len(list_name).

how do you do it?
from raltao

In the length of the list you have to type in len(suitcase) instead of 4. I think it’s quite clear.

What does the % mean?

Do you mean when it appears like so?

a % b

Or like so?

print ("some string %s" % string)