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, ['Y', '8995', 'E', 'o', 'J', '4509', '7939', '7977', 'r', 't', 'G', 'J', 's', 'L', '9477', '7389', 'x', 'B', 'H', '155', '4953', '8201', 'Y', '681', 'x', '5159', 'J', 'A', '9561', '5415']