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, ['9895', 'G', '6449', '3259', '6839', 'v', 'G', '7085', '2361', 'w', '7573', '7251', 'G', '9671', '8231', 'z', '8513', '5133']