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, ['J', 'O', 'o', 'm', 'L', '6421', 'h', 'i', '2081', '5461', 'C', 'X', '7219', 'j', 'O', '4963', '3915', '7591', 'J', '2697', '2113', 'q', '3649', 'r', '1953']