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.
9, ['X', 'F', 'W', '3593', '1499', '3725', 'n', '1931', 'r', 'D', 'g', 'K', 'A', 'x', '1065', 'g', '633', '8251', 'B', 'J', 'V', 'Y', '1569', 'r', 'p', 'Y', '2191', '337', '9795', 'S']