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.
8, ['2477', '6621', 'G', 'J', 'h', '1437', 'a', 'm', 'n', 'Z', 'K', 'b', 'L', 'U', '7791', '9665', '3069', '5765', 'J', 'a', '4391', '9199', '5871', '8989', '1299', 't']