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, ['P', 'u', 'X', 'j', '7477', '3877']
P, u, X

2, ['8883', '1411', '9753', '3947', 'Y', 'E', 'B', '4923', 'B', 'E', 'd', '1659', 'y', 't', 'd', '2321', 'C', 'M', '9013', 'U', '579', '399']
8883, 1411, 9753, 3947, Y, E, B, 4923, B, E, d, 1659, y, t, d, 2321, C, M, 9013, U

1, ['8031', 'E', '1943', 'R', 'b', 'o', '4755', '3071', 't', '4733', 'V', 's', '1631', '4689', '5137', '6839', '2559', 'C', 'V', 't', '7141', '1053', 'C', 'r', '7971', '6175', '5077']

8031, E, 1943, R, b, o, 4755, 3071, t, 4733, V, s, 1631, 4689, 5137, 6839, 2559, C, V, t, 7141, 1053, C, r, 7971, 6175