4 late arrivals


#1



suitcase = []
suitcase.append("sunglasses")

Your code here!

suitcase.append("bathing suit")
suitcase.append("clothes")
suitcase.append("money")

list_length = suitcase # Set this to the length of suitcase

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

Traceback (most recent call last):
File "python", line 11, in
TypeError: %d format: a number is required, not list

Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: %d format: a number is required, not list

\

WHAT IS MY MISTAKE


Replace this line with your code.


#2

I found my mistake

In the 9 th line I forgot to add len in front of suitcase


#3

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