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.
12, ['i', '8317', 'J', '3331', 'm', '4551', 'o', 'I', '5477', '3071', '5247', 'T', 'G', 'k', 'B', '8053', '6015', '2903', 'u', '6765', 'u', 'M', '6143', 'n', 'G', 'i', 'k']