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, ['M', '4955', 'U', 'f', '4205', '7903', '6289', 'x', '335', '3763', '7905', 'q', 'g', 'b', 'X', '8277', 'S', '9065', '8907', '367', 'V', '8085', '9949', '5987', '9875', 'y', '8211', '4737', '8909']