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.
2, ['2733', '3051', '2447', 'w', '9691', 'a', 'n', '7575', '3909', 'g', 'm', '1393', '6837', 'h', '6223', 'g', 'J', 'b', 'H']