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, ['D', '7693', '4159', '7783', '6083', '4435', '1319', '7397', 'R', '4939', 'T', 'f', '5437', '4013', 'k', '8017', '8495', '9241', 'b']
D, 7693, 4159, 7783, 6083, 4435, 1319, 7397, R, 4939, T, f, 5437, 4013

6, ['8827', '6021', '6397', '71', 'u', 'l', '4735', '4253', '2233', '7871', 'j', '5375', '4627', 'E', '2221', 'P', '3249', 'Z']
8827, 6021, 6397, 71, u, l, 4735, 4253, 2233, 7871, j, 5375

3, ['M', '5663', '4129', 'B', '7459', 's', '6615', 's']

M, 5663, 4129, B, 7459