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.
8, ['8783', 'S', '9775', 'Q', '9201', 'C', 'N', '6811', 'y', 'a', '6873', 'C', '3253', '7411', 'h', 'S', '2607', '3657', '9267', 'J', '4757', 'W', '5667', '2453', 'i', 'X']