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, ['A', 'i', 'x', '2609', '7749', '1291', 'u', '1843', '6137', 'o', 'B', '1867', '3541', 'y', '521', 'B', '7129', '8159', 'f', 'P', 'F', '4925', 'I', '7343', '4821', 'e', 'X', 'Y']