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, ['I', '7777', 'J', '4001', 'J', 'M', '579', 'G', '1881', 's', 'x', '9261', '9455', 'r', '9213', 'r', 'J', 'O', '9601', '1039', 'u', '7047', 'a', '2223', '7775', '3721', 'e', '3837']