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.

Q: 2, ['M', '4555', '3495', '6283', '6109']

A: M, 4555, 3495
****
Q: 4, ['1863', '8975', '8579', '4121', '605', 'm', '4059', 'C', 'j', '6327']

A: 1863, 8975, 8579, 4121, 605, m
****
Q: 2, ['6585', '147', 'W', 'w']

A:
6585, 147
****