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.
1, ['s', 'g', '1839', 'G', '9227', 'X', 'n', '7149', '7919', '9645', '3459', '2279', 'F', '5815', '9177', '7115', 'm', 'x', 'z', '5043', '6119', '443', 'U', '9731', 'Q', 'n', 'Z', '8751', 'L']