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.
12, ['C', 'A', 'c', 'i', '2627', 'Q', 'Y', '4065', '7973', '8839', 'g', '8237', 'r', 'y', '1149', '4571', 'h', 'h', '6493', '4961', '1795', '1797', 'w', 'N', '2149']