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.

4, ['E', 'k', 'b', '8941', 'B', '2093', 'J', 'W', '901', 'M']
E, k, b, 8941, B, 2093

2, ['c', '2337', '5909', '2409', '6989', '7645', '469', '9185', '6869']
c, 2337, 5909, 2409, 6989, 7645, 469

12, ['5157', '5561', '8679', 'M', 'u', '109', '1499', 'z', '5735', '5571', 'N', 'M', 'K', '8813', 'Q', 'r', '3245', 'R', '6909', '4647', '9449', 'm', 'e', '3955', 'f', '6539', 'g']

5157, 5561, 8679, M, u, 109, 1499, z, 5735, 5571, N, M, K, 8813, Q