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.
10, ['L', '1995', 'W', 'H', 'N', 'q', '5557', '2681', 'I', 'U', '7023', '7691', '4115', '8301', '5767', '5947', '471', '8989', 'q', 'N', '8267', 'O', 'U', '9095', 'P']