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.
10, ['6247', '9613', '3361', '6013', '2321', '5939', 'X', '1039', '2467', 't', '287', '8977', '1495', 'y', '8037', 'v', '1499', '8035', 'o', '9151']