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, ['9147', 'e', 'X', '3239', 'o', 'K', '253', '8607', '4751', '9261', '687', 'v', 'A', '4107', 'g', '8107', 'Q', '1591', '5895', '1861', '2149', 'J', '2579', '1337', '4601', '5133']