5/14 Doesn't work


#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)

How is this wrong? :disappointed:


#2

Fixed it :tada:

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)


#3

it works thank you very much


#4

Hah, I came here as soon as I figure this out myself. I'm wondering why the list starts at 0 before the colon, yet 1 after. Could someone please explain?