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.

12, ['E', '3459', 'J', 'd', 'k', '6663', 'z', 'X', '823', '7451', 'V', '81', 'M', '9619', '1435', '5885', 'y', '8269', '5829', 'A', '9089', 'k', 'u', '3689', 'x', '6195', 'k']
E, 3459, J, d, k, 6663, z, X, 823, 7451, V, 81, M, 9619, 1435

3, ['9565', 'Y', '6571', 'z', '9763', 'd', 'D', '8481', 'l', 'L', 'Z', '2295', 's', 'I', 'E', '8001', '9895', 'E', '3393']
9565, Y, 6571, z, 9763, d, D, 8481, l, L, Z, 2295, s, I, E, 8001

12, ['E', 'K', 'K', 'G', '7943', 'i', '2507', 'B', 'L', 'k', 'f', '3197', 'Y', '1353', 'l', 'E', '5679', 'U', '875', 'C', '8257', 'R', 'h', '6039', 'T', '8417', 'U']

E, K, K, G, 7943, i, 2507, B, L, k, f, 3197, Y, 1353, l