Late Arrivals and List Length (Not Sure what I did wrong)


#1



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


len(list_name) will return the length of a list as an integer.


I expect to show them my list of things.


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

# Your code here!
suitcase.append("bathing suit")
suitcase.append("sunblock")
suitcase.append("towel")



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

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


#2

Did you try with the actual list?

% len(suitcase)

#5

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