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.
5, ['6045', 'F', '633', 'j', '8261', '921', '8395', 'K', '2247', 'W', '6271', '177', 'S', 'D', '793', '8141', 'c', '4571', 'D', '2271', 'P', '4971', '1521', '6199', '1903']