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, ['3101', 'F', 'W', 'g', '5335', 'I', 'K', '7351', '8983', '1279', '8587', '2875', 'A', '6977', 'L', 'E', '2329', 'v', 'J', 'e', 'x']