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, ['S', '213', 'a', 'R', '9743', 'z', '5415', '2175', '4903', '3703', '1693', '8343', '6065', '8927', '775', 'H', 'a', 'L', 'E', 'm', '2341']