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.

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

A: W, c, 5875, j, 7453, 7255, f, Q, 7089, P, g
****
Q: 7, ['6443', '1261', '945', '2891', 'p', '2667', 'G', 'm', 'n', 'C', '3627', '9613', '9095', 'K', '3081', '4231', 'E', 'l']

A: 6443, 1261, 945, 2891, p, 2667, G, m, n, C, 3627
****
Q: 7, ['w', '3899', '977', 'R', 'w', 'A', '8391', '5143', 'X', '8307', 'D', '6655', 'f', 'z', '6111', 'r', '8753', 'o']

A:
w, 3899, 977, R, w, A, 8391, 5143, X, 8307, D
****