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: 2, ['5957', '3849', '607', '7883', 'y', 'y', '3165', '2541', 'z', 'g', '6123', 'q', '527', 'q', '8515', '1189', 't', 'e', 'j', '1389', '7571', '7485', '1017', '3799', '6519']

A: 5957, 3849, 607, 7883, y, y, 3165, 2541, z, g, 6123, q, 527, q, 8515, 1189, t, e, j, 1389, 7571, 7485, 1017
****
Q: 1, ['e', 'M', '5065', 'T', 'm', 'f', 'a', 'a', '5383', 'H', 'D', '7711', '5143', '6705', 't', 'E', 'o', '1853', '4821']

A: e, M, 5065, T, m, f, a, a, 5383, H, D, 7711, 5143, 6705, t, E, o, 1853
****
Q: 2, ['9983', '3269', 'L', 'E', 't', 'm', '1043', '2991', '6713', '7381', '1141']

A:
9983, 3269, L, E, t, m, 1043, 2991, 6713
****