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.
3, ['1659', 'H', 'Y', '1409', '1931', '6611', '2055', 'E', 'F', '7345', 'h', '4027', 't', '4897', 'b', '231', '2485', 'Y', 'q', 'j', 'B']