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.
2, ['i', 'F', 'P', '6789', 'l', 'K', 'F', '2825', '5209', 'a', '2129', 'b', '3647', '145', 'l', '4393', 'l', '7091', '8717', '479', 'U', 'B', '4735', 'S', 'm', 'y', 'C', '2953']