Late Arrivals & List Length Problem


#1



https://www.codecademy.com/courses/python-beginner-en-pwmb1/1/1?curriculum_id=4f89dab3d788890003000096#


Oops, try again. Did you remember to append() three items to suitcase?


I thought this code is work and it show well on the right hand side of the screen but there are red box on the bottom said i didn't add three more items in suitcase list


Replace this line with your code. 

suitcase = ['a', 'b', 'c'] 
suitcase.append("sunglasses")


suitcase.append("k")
suitcase.append("r")
suitcase.append("l")

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

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


#2

your suitcase:

suitcase = ['a', 'b', 'c']

should be empty, at the end there should be exactly 4 items inside (sunglasses, which the exercise adds for you) and the 3 three items you add


#3

yo i read what u told hime since i was having trrouble and it work so thx i guess :smiley:]


#4

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