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.
12, ['S', '5197', 'h', '5197', '3583', '7945', '2449', 'd', '7397', 'X', '7693', '7987', '4465', 'T', 'm', '5755', 'D', 'l', 'Q', 'S', 'x', 'V', 's', 'i', 'y', '9583']