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, ['F', 'U', '3895', '6895', '3091', '5081', '4245', 'k', 'Z', '9931', 'o', '1449', 'o', '8823', '513', '913', '3125', 'S', 'b', 'b', '607', 'p', '859']