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, ['9281', 'O', 'N', '2551', 'M', '4983', 'r', '5831', 'P', 'l', '737', 'L', '8853', 'K', 'q', 't', '2541', '9021', '9729', 'L', '7253', 'T', '6837', '1195', 'Y']