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, ['J', 'X', '6043', '7423', '1799', 'w', 'H', 't', '923', '6959', '979', '4821', 'K', '339', '3181', 'I', '3533', 'Z', 'x', '5721', 'S', '2505', '1253', 'e', '9155', '2407', 'q', '6795', '3173']