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.
2, ['Z', '6185', 'v', 'r', '9085', 'D', 'h', 'Z', 'i', '45', 's', '9929', 'o', '1339', 'V', '5393', 'T', 'Z', '6037', 'q', '2379', '1933', '553', '6993', 'T', '1427', 'D', '1013', '7813']