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, ['8217', '341', 'x', 'z', 'Q', 'D', '5265', '5393', '677', '9403', '2913', '3271', 'r', 'w', '7685', 'h', 'X', '4425', '8575', '1173', '1879', '3993', 'm', '7625']