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: 7, ['Y', '237', 'u', '6417', '8945', 'B', 'K', 's', '7275', 'o', '8239', 'Z', 'M', '2951', 'y', 'b', '3473', 'f', '6235', '1895']

A: Y, 237, u, 6417, 8945, B, K, s, 7275, o, 8239, Z, M
****
Q: 3, ['p', '7857', 'h', '7041', '7917', '1685', 'o', 'P', '5675', 'W', 'Z', 'L', 'W', 'z', '3111', 'm', 'n', '8823', 'R', '5619', '9219', 'M', 'a', '4991', '7801', '8387', '7483', 'Q', '789']

A: p, 7857, h, 7041, 7917, 1685, o, P, 5675, W, Z, L, W, z, 3111, m, n, 8823, R, 5619, 9219, M, a, 4991, 7801, 8387
****
Q: 6, ['f', '7187', '7011', 'x', 'G', '6009', 'A', '4483', 'w', 'y', '7047', 'P', 'Z', '7547', '8417', 'Q']

A:
f, 7187, 7011, x, G, 6009, A, 4483, w, y
****