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.

5, ['6395', '6931', 'e', '6777', 'x', 'k', 'r', '8745', '6787', '9237', 'e', '6301', '6663', 'w']
6395, 6931, e, 6777, x, k, r, 8745, 6787

1, ['U', '8289', '3197']
U, 8289

8, ['o', '9947', '3413', 'I', '7501', '7759', '2959', 'u', 'h', '8469', '5181', '195', 'C', '5007', '6683', '5097', '7683', 'U', '7081', '6153', 'b', 'v', 'N', 'D', '8967', 'y', '5089', '4355']

o, 9947, 3413, I, 7501, 7759, 2959, u, h, 8469, 5181, 195, C, 5007, 6683, 5097, 7683, U, 7081, 6153