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.

6, ['7335', 'z', 'q', '1643', '8317', 't', 't', '8503', 'b', 'c', '6825', '6045', 'h', '2005', 'f', 'W', '7821']
7335, z, q, 1643, 8317, t, t, 8503, b, c, 6825

2, ['9713', '1697', '3659', '6133', '8603', '7205', 'd', 'h', '4837']
9713, 1697, 3659, 6133, 8603, 7205, d

6, ['5873', '7397', 'B', '3309', 'Y', '5729', '6057', '9195', '7567', '6491', '3591', 'w', '8487', '5563', '2553', '9889', '1949', '1069', 'i', '1629', 'O', 'q', 'S', 't', 'Z', '3741', '2933', 'E', '9069', 'k']

5873, 7397, B, 3309, Y, 5729, 6057, 9195, 7567, 6491, 3591, w, 8487, 5563, 2553, 9889, 1949, 1069, i, 1629, O, q, S, t