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.
3, ['L', '5669', 'W', 'H', 'l', 'b', '5789', '5637', '1141', '423', '6651', '9555', '9851', '7235', '3617', '3419', 'C', '167']