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.
10, ['Z', '2539', 'M', '355', '7759', 'N', 'I', '8421', '9709', '9549', 'd', 'M', '8333', 'M', 'i', '9129', '4447', 'b', '1107', 'h', 'R', 'c', 'I', '3677', '7757', 'O', '1459', '5445', '1725', 'H']