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.
3, ['f', 'r', 'q', '533', 'M', '2119', '1193', 'P', '8287', 'Y', 'M', '7705', '61', 'B', '1647', '7249', '3961']