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.
4, ['2013', 'S', 'D', 'j', 'p', '5805', 'm', '1975', 'Z', '8355', 's', '9419', 'p', 'K', '5011', 'W', '7327', 'A', '3727', 'n', '1729']