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, ['E', '4853', '5511', '6389', '4941', 'b', '9131', 'm', '1449', 't', '431', '5991', 'z', '1295', 'A', '2115', 'p', '1699', '4177', 'U', '9877', 'd']