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.
1, ['N', 'M', 'z', '3433', 'E', 'B', '4071', 'q', '3733', '91', 'P', '1947', 'e', '9065', '4901', '8611', '8163', '1799', 'v', 'e', 'e', '3943', '7', '2057', '793']