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.
10, ['b', '4945', '4803', 'Q', 'L', 'x', '6083', '2509', 'T', '5227', '4693', '5587', 'G', 'x', '8845', 'Q', 't', '665', '4647', 'Z', 'p', 'B', 'Q', '943', '7615', 'l', 's']