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.
7, ['5517', 'p', 'X', '2669', '8295', 'x', '6429', 'W', '4845', '1067', 'v', 'a', 'D', '5205', '4061', 'E', 'l', '6797', '1863', 'N', '5265', '2471', 'b', '8361', '9405', 'n']