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.
5, ['G', 'K', '3983', '7995', '3927', '9983', 'O', 'm', 'W', 'j', 's', 'U', '2255', '5901', 't', '9437', 'L', '1993', 'b', '4777', '3163', '5079', '2757', 'O', 'o', 'q', '6601']