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.
11, ['y', 'p', 'q', '4947', '6989', 'E', '151', 'N', '7815', '4399', '1733', '9117', '2619', 'g', '1155', '5311', '9767', 'p', '4737', 'T', 'B', 'b', 'R', '1165', 'l', '3419']