Late Arrivals and List Length


#1

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

# Your code here!
suitcase.append("clothes")
suitcase.append("books")
suitcase.append("underwear")



list_length = suitcase = []
print "There are %d items in the suitcase." %4 (list_length)
print suitcase

I have done what it asks... But I don't seem to get the question correct>~<

Python is Weird


#2

does anybody know how to correct this for me?


#3

Error #1

The correct syntax is list_length = len(suitcase)

Error #2

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

See if it works now.


#4

Thank You MEASON! so much for helping me!


#5

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