Oops, try again. It looks like your middle slice is ["passport"] instead of ["passport", "laptop"]


#1

suitcase = ["sunglasses", "hat", "passport", "laptop", "suit", "shoes"]

first = suitcase[0:2] # The first and second items (index zero and one)
middle = suitcase[2:3] # Third and fourth items (index two and three)
last = suitcase[4:5] # The last two items (index four and five)

what's wrong here


#2

here:

middle = suitcase[2:3]  # Third and fourth items (index two and three)

the stop value (3) is not include, so with a stop value of 3 it goes for values lower then 3 (not lower or equal)


#3

suitcase = ["sunglasses", "hat", "passport", "laptop", "suit", "shoes"]

first = suitcase[0:2] # The first and second items (index zero and one)
middle = suitcase[2:4] # Third and fourth items (index two and three)
last = suitcase[4:6] # The last two items (index four and five)

I correct it thanks alot


#4