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, ['9173', 'c', 'N', 'v', 'h', '5829', 'n', '4349', 'K', '3003', 'B', '9181', 'F', 'U', '6615', '3073', 'Q', 'W', 'A', '8765', 'y', '4217', '3653', 'i']