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.
4, ['n', 'u', 'i', '7155', 'm', 'Q', '3845', '1075', '2091', 'P', '6043', 'z', 'X', '9691', 'F', 'a', 'r']