Late Arrivals & List Length


#1

any idea why im getting this error, help please

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

# Your code here!
suitcase.append("camera")
suitcase.append("sunblocker")
suitcase.append("soda")
suitcase.append("suit")


list_length = len(suitcase) # Set this to the length of suitcase

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


#2

Looks like you appended four. Could that be the issue?


#3

yes, thats the issue. thank you


#4

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