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.
8, ['6985', '3609', '8673', '2661', 'n', '3147', 'V', '2241', '5741', 'Y', 'B', '3113', 'N', '4861', '8575', '7835', 'L', 'S', '4481', '1357', '1951', 'j', 'C', '2413', 'q', 'E', '1095', '1995', 'S']