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.
7, ['8601', 'c', '203', 'K', '2879', '1241', 'w', '987', 'P', '9359', '6391', 'o', 'B', 'N', '5711', '4175', '6397', '6933', 'Q', '3585', 'T', '7309', 'X', '7385', '2329']