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]: 5, ['l', 'M', '5143', '6301', 'W', 'H', 'D', 'o', '7457', 'o', '5021', 'a', '5621', 'g', 'A', 'Q', 'X', 'X', 'b']
[A]: l, M, 5143, 6301, W, H, D, o, 7457, o, 5021, a, 5621, g


[Q]: 7, ['7721', 'W', 'o', 'R', '2933', 'N', '9829', '707', 'A', 'a', '8035', 'i', 'B', 'j', '319', 'v', '5879']
[A]: 7721, W, o, R, 2933, N, 9829, 707, A, a


[Q]: 10, ['H', '6389', 'K', 'J', 'p', 'C', '4473', '6347', 'l', '5855', '1881', 'v', '4253', '2945', 'i', '6541', '2769', '8697', '4751', 'y', 'f', '7769', '4907', 'E', '2739', 'S']
[A]:
H, 6389, K, J, p, C, 4473, 6347, l, 5855, 1881, v, 4253, 2945, i, 6541