Code broke?




When slicing lists in Python, the first number is inclusive while the second number is exclusive.

So [0:1] means "take a slice of the list from index 0 up to but not including 1".

Which means that what you're looking for is suitcase[0:2] - or "from 0 and up to but not including 2".

You'll have to change your "middle" and "last" slices to reflect this too.