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, ['6183', 'P', '5579', '9469', '1767', 'e', '7677', '4059', '917', 'x', '6277', '6041', 'z', '5633', '2303', '6617', 'B', 'y', '1533', '2587', 'u', '7685', '8221']