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.
10, ['6549', 's', '4585', 'A', 'J', 'w', '8681', '1541', 'D', '293', 'U', '7265', '7919', '8643', 'e', 'Y', '4423', 'X', 'Q', '1911', 'V', '9133', 'n', 'C', 'd', 'o']