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, ['8543', 'z', '2223', 'V', '5707', 'e', '2035', '5729', 'A', 'T', '1889', 'b', 'K', '9253', 'm', '1377', '9133', 'b', '5137', 'P', '3375', '7093', '6065', '547']