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.
7, ['d', '577', 't', 'P', '6021', '2177', '3605', 'B', '4961', '3227', 'z', 'L', 'w', 'm', 'K', 'Q', 'Q', 'N', 'U', 'S', 'B', '4755', '9703', '7771', 'm', 'O', '8973', 'F', '9233', 'l']