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, ['2111', 'B', '2963', '2351', '1843', 'e', 'm', 'D', '6133', '8945', '7273', '1561', 'J', 'c', 'Q', '3729', '8629', 'G', '3019', '285', '5707', 'X', '4333', 'P']