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.
11, ['g', 'J', '9427', '4707', 'J', '1621', '9943', '8497', 'r', '2667', '4233', 'P', '7213', 'p', '6515', 't', 'k', '8077', '2697', 'r', '1603', 'T', 'a', 'i', 'c', '9043']