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, ['f', 'D', '5335', 'D', '9741', '7551', '577', '1687', '2351', '7425', 'p', '2199', 'F', 'T', 'r', 'P', 'r', '1925', 'm', '8883', 'q', 't', 'S', 'O', 'z', 'B', 'C', 'Z', 'X', '5083']