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, ['4085', 'G', 'j', '2887', '4751', '3823', 'N', 'F', '7773', 'L', 'A', '7895', '3721', '2139', '9455', 'e', '5705', '6443', '4083']