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.

5, ['Y', 'r', '9549', 'A', 'W', '9491', '1261', '2453', '5669', 'd', '9411', '1809', '581', 'O', '1969']
Y, r, 9549, A, W, 9491, 1261, 2453, 5669, d

5, ['H', '6247', '3419', 'a', 'g', 'b', 'S', '6077', 'L', '7419', 'C', '8475', '979', '7501', '4631', 'w', 'J', '7377']
H, 6247, 3419, a, g, b, S, 6077, L, 7419, C, 8475, 979

5, ['x', 'F', '4341', 'F', 'K', 'F', 'm', 'u', 'b', '2759', 'G', 'J', 't', 'F', '553', '2671', 'd', 'T', 'E', 'i', 'u', 'h', '2645', 'A', '3571', 'z', '2401']

x, F, 4341, F, K, F, m, u, b, 2759, G, J, t, F, 553, 2671, d, T, E, i, u, h