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.
--------
Question: 2, ['A', 'w', '4031', '5175', 'H', '4627', '8031', 'Z', 'u', '5489', '1145', '1173', '5959', '5695', 'b', '9535', '8215', 'x', 'U', 'V', '773']

Answer: A, w, 4031, 5175, H, 4627, 8031, Z, u, 5489, 1145, 1173, 5959, 5695, b, 9535, 8215, x, U


Question: 5, ['467', 'X', 'l', '895', 'F', '9837', 'H', 'y', 'n', '8395', '8195', 'Y', 'O', 'T']

Answer: 467, X, l, 895, F, 9837, H, y, n


Question: 3, ['923', '5799', '5165', 'm', 'C', '6833', '291', '6047', '4309', 'L']

Answer:
923, 5799, 5165, m, C, 6833, 291