I don't understand why this code works the way it does, can someone please explain it?
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)
In the variable 'middle', shouldn't the correct answer be suitcase=[2:3]? When I put in said information and tried to print it, it only printed 'passport'.
I'm just a little confused.