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.
5, ['2173', 'F', 'b', '1921', 'L', 'J', 'y', 'C', '381', '2183', 'X', 'q', '7157', 'Y', 'h', 'e', 'p', '7477', '3223', '8599', '6361', 'Z']