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, ['W', '9233', '4001', 'R', '2829', 't', 'T', '3353', '1013', 'w']
W, 9233, 4001, R, 2829

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

6, ['5771', 'i', 'b', 'T', '9177', '8579', 'q', '7573', '5753', 'E', '1639', '8673', 'Y', 'J', 'C', '5285', '6221', 'm', 'P', 'U', '9785', 'Z', '3177', '9121', 'o', 'C', '8785', 'j', 'f', '8449']

5771, i, b, T, 9177, 8579, q, 7573, 5753, E, 1639, 8673, Y, J, C, 5285, 6221, m, P, U, 9785, Z, 3177, 9121