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, ['6729', '279', 'Y', '6873', '8341', '1499', 'O', '1903', '1581', '641', '2007', '6223', '2497', 'I', 'A', '5351', '4523', 'H', '4485', '8351']