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.
3, ['S', '989', 'f', '2933', 'l', '291', '1939', 'a', '3933', '6125', 'X', '7215', 'D', '1545', '3803', 'C']