Late Arrivals & List Length seems wrong in the console



I did the right thing (I think) and I can start the next lesson.
However the result seems wrong in the console:

There are 1 items in the suitcase.
['sunglasses', 'short', 'tie', 'polo']

My code:

suitcase = []

Your code here!


list_length = [3] # Set this to the length of suitcase

The result should be 4 items and not 1 in the console, no?


To find length of list(number of items), We use len() function.
We pass our list to len() function and it returns the number of items.

Here our list is suitcase
If you want to save the number/length.
Save it to a variable, Its list_length here.


Ah ok, thanks for your answer :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.