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.
9, ['2879', 'I', 'W', '5879', '3013', 'F', '9259', 'R', '5517', '3349', '1191', 'l', '5405', '9503', '2515', 'H', '1641', 'r', '6907', 'r']