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, ['r', '9677', 'e', 'S', '2353', '6229', '5127', 'G', '2199', 'z', 'l', '1333', '7219', 'o', '2511', '3131', 'J', '4299', '6867', '4031', '6575', 'l', 't']