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, ['4851', '2141', '7677', 'S', 'v', 'C', 'j', '7399', '2269', '8581', 'g', 'f', '2915', '9205', '8465', 'V', '5713', 'K', '6677', 'N', 'U', '9017', '2995', 'S']