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, ['9789', '1943', 'I', 'k', 'D', '5609', 'X', 'n', 'E', '7003', 'T', 'h', '9991', '9195', '8677', 'A', 'G', '3047', '3337', 'W', '7503', '6753', 'H', '5979', '7963', '8789', '1793', 'a', '1539', 'G']