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.
9, ['Y', '1273', '4449', 'P', 'b', 'P', '7341', '351', '2137', '7831', 'Q', 'a', 'p', 'Y', 'R', '9249', '3285', 'w', '4495', '705', '7987', '2595', 'o', '8791']