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.
9, ['j', 'x', 'i', 'C', '7111', '415', '8269', '6797', 'B', '4097', '2231', 'A', '6083', 'K', '3603', 'i', '2239', '4527', 'k', 'd', '9669', 'a', 'H', '7409', 'R', '5583', '9013', 'g', 'Y', 'r']