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.
10, ['c', 'M', '1043', '1047', 'M', '7107', 'S', 'm', '5031', 'Y', '3275', '3841', '5657', 'b', '4503', 'x', 'I', 'G', '5111', 'U', 'c', 'M']