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.
4, ['U', '1691', 'h', '3663', '9675', 'F', '7271', '8195', 'n', '561', '737', 'N', '5363', '9725', 'F', '2775', 'u']