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, ['I', '3887', '2569', '6317', 'L', 'F', 'M', 'E', 'S', 'F', '7239', 'f', '1493', 'z', 'q', '3099', 'X', 'i', 'n', '3967', 'c', '1591', '8383', '2751']