
Exercise for reference:
letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"]
Answer:
letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] print(letters[-3:])
Explanation:
[-3:] means from the item with index -3 (i.e. h ) to the very last item of the list. When you don't put any index to the colon's right, everything is included, and upper-bound exclusivity is ignored.