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.
7, ['Z', '5417', '4849', '8355', '6389', '7963', 'Y', 'i', '8657', '6007', 'h', 'O', '7553', '6799', 'Z', 'n', '737', '4703', '9521', 'x', '8389', '5307']