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.

1, ['W', 'c', '5875', 'j', '7453', '7255', 'f', 'Q', '7089', 'P', 'g', 'X']
W, c, 5875, j, 7453, 7255, f, Q, 7089, P, g

5, ['X', 'i', '4513', '2451', '4079', '8191', '9915', '8299', '6139', '705', 't', '7117', 'M', '2621', '9617', '3259', '1173', 'E', 'T', 'm', '6179', 'W']
X, i, 4513, 2451, 4079, 8191, 9915, 8299, 6139, 705, t, 7117, M, 2621, 9617, 3259, 1173

10, ['7167', '8963', 'r', 'O', '7303', 'D', 'B', 'E', '885', '8447', 'v', 'J', 'f', '3051', '1781', '9407', '989', '3221', '2705', '3829', 'V', 'z', 'R', 'C', '2217', 'I', '4113']

7167, 8963, r, O, 7303, D, B, E, 885, 8447, v, J, f, 3051, 1781, 9407, 989