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.
3, ['8541', '1765', 'r', 'k', '5723', 'B', '5665', '1653', '2937', 'Z', 'I', 'Z', 'r', '155', 'C', 'Q', '6341', '1179', '3893', '9963', 'V', '7383']