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: 4, ['W', 'U', '7989', '7921', '2625', '4897', '1429', '7431', 'v', 'J', 'G', '2459', 'h', 'D', 'O', 'j', '5037', '9775', '7017']

A: W, U, 7989, 7921, 2625, 4897, 1429, 7431, v, J, G, 2459, h, D, O
****
Q: 5, ['A', 'w', '9367', 'j', 'J', '457', 'z', 'C', 'V', 'S', 'P', '8791', '8675', '2373', 'w', 'B', 'p', 'y', '1057', '4815', '5749', 'v', '1123', 'f', 'p']

A: A, w, 9367, j, J, 457, z, C, V, S, P, 8791, 8675, 2373, w, B, p, y, 1057, 4815
****
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
****