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]: 6, ['r', 'p', '7223', '9051', 'u', 'v', '375', 'w', '8567', 'q', 'N', '9645', 'q', '8191', '4949', 'e']
[EX A]: r, p, 7223, 9051, u, v, 375, w, 8567, q

[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]: 3, ['2855', '5913', 'F', '5403', 'L', 'K', 'k', 'u', 'x', '9365', '5361', 'i', 'M', '2061', '3233', '505', '6443', '4685']
[EX A]:
2855, 5913, F, 5403, L, K, k, u, x, 9365, 5361, i, M, 2061, 3233