In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.
12, ['S', 'c', 'I', '4223', 'K', '5213', 'I', 'd', '8721', 'x', 'p', '7681', '903', '6557', 'Z', '2665', 'U', '9001', 'H', 'p', '3583', '6343', '9319', 'M', 'L', 'E', 'r']