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, ['1699', 'P', '7717', 'E', '821', '5857', 'i', 'I', 'N', '8165', '3665', '7853', 'L', 'Y', '1063', 'R', '669', 'Z', 'S', '6209', '8273', '1815', 'Z', 'Z', '1553']