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.
4, ['4261', 'E', '8831', 'C', 'L', 'R', '4699', '7181', 'Y', 'q', '9285', 'w', 'r', 'q', '25', '9725', 'z', '5521', '1843', '7707', 'L', 'C', 'K', '1987', '8787', 'u', '4749', '6221', '9585', 'Q']