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.

3, ['X', 'q', '7763', 'M', '9147', '2389', 'R', '6965', 'm', '9703', '6267', 'p', 'p', 'c', '2131', 'r', '4203', '9873', '5485', '5849', '5415', '7553', 'W', '9125', '5885']
X, q, 7763, M, 9147, 2389, R, 6965, m, 9703, 6267, p, p, c, 2131, r, 4203, 9873, 5485, 5849, 5415, 7553