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.
7, ['9367', '219', 'S', '7331', '3153', '3685', 'Y', '7881', 'X', 'm', 'u', '4783', 'l', 'z', '4689', '9431', '233', '6819', '5747', '4599', '3853', 'n', 'x', 'k', 'O', '567', 'N', 's']