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, ['z', '8357', '5239', 'x', '8283', '8521', '9845', 'R', '1511', 'x', '8023', 'j', 'y', 'L', '6361', 'R', 'x', 'a', '8565', '7905', 'i', '5563', '841', 'i', 'g']