Let us take a look at the instructions:
On lines 5, 6, and 7, append three more items to the suitcase list, just like the second line of the example above. (Maybe bring a bathing suit?)
list_length equal to the length of the suitcase list.
So the first thing which you've gotta do is to append 3 more items to the suitcase list, just like how the example did it. So how did the example do it?
which should lead you to realise that when adding items to a list you can do
list_name.append("item"). For instance, in the example the list name was
letters, and they wanted to add the letter 'd' to the list
letters, so they did
letters.append('d'). Now, you have a list called
suitcase, and you want to add
bathing suit. What can you do? Do the same for all other items you want to add to
Then the second thing we've gotta do is to set the variable
list_length equal to the length of the
suitcase list. How? Again, we can refer to the example code:
When they wanted to find the length of the list letters, they simply used the
len() function, by doing
len(list_name). In this case, your list name is
suitcase, so how can you modify this function so that it will calculatethe length of the
suitcase list for you?