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, ['8639', '6143', 'W', 'q', 's', 'r', 'W', '8057', 'W', 'P', 'I', 'O', '8325', 'R', 'k', '1769', 'y', '1425', 'V', '1091', '5661', '6779', '351', '2435', 'b']