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, ['7539', '5355', '5163', '393', 'U', '9923', 'E', 'H', 'A', 'K', 'o', 'N', 'Z', 'c']
[A]: 7539, 5355, 5163, 393, U, 9923, E, H, A, K


[Q]: 5, ['6395', '6931', 'e', '6777', 'x', 'k', 'r', '8745', '6787', '9237', 'e', '6301', '6663', 'w']
[A]: 6395, 6931, e, 6777, x, k, r, 8745, 6787


[Q]: 10, ['7459', '9051', 'q', '7257', 'o', 'x', '2261', '7919', '1513', '4311', '2505', '1915', '9083', '3085', 'V', 'P', '4883', 'U', '2337', '5927', '5453', 'l', '2677', 'V', '9791', 'f', '9479']
[A]:
7459, 9051, q, 7257, o, x, 2261, 7919, 1513, 4311, 2505, 1915, 9083, 3085, V, P, 4883