4. What am i doing wrong?


#1

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 = []
suitcase.append("sunglasses")

suitcase.append["a"]
suitcase.append["b"]
suitcase.append["c"]

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'


#2

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


#3

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