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.

[EX Q]: 9, ['M', '5', 'j', 'D', '8995', '9639', 'C', '431', '9105', '525', 'Q', 'O', '3657', '6137', 'u', 'c', '3099', '6233']
[EX A]: M, 5, j, D, 8995, 9639, C, 431, 9105

[EX Q]: 5, ['9903', 'P', '1623', '5483', 'D', 'W', '689', '5935', '1897', '233']
[EX A]: 9903, P, 1623, 5483, D

[EX Q]: 15, ['4701', 'r', '2993', 'S', '3623', '351', 'i', '3901', 'Q', 'I', 'M', 'o', '8339', 'A', 'o', '8271', 'v', 'b', '1421', 'N', '7939', '2785', '2809', '9895', 'G', 'U', '4605', '8177', 'L', '5391']
[EX A]:
4701, r, 2993, S, 3623, 351, i, 3901, Q, I, M, o, 8339, A, o