4. What am i doing wrong?


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?)
Then, set list_length equal to the length of the suitcase list.

suitcase = []


list_length = len(suitcase)
print "There are %d items in the suitcase." % (list_length)
print suitcase

Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: 'builtin_function_or_method' object has no attribute 'getitem'


You've used brackets [ ] instead of parentheses ( )


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