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.
3, ['1435', '6457', 't', '3643', '5683', '8707', 't', 'A', '7919', '2995', '7535', '8441', 'a', 'i', 'E', 'E', '7241', '5561', '5615', 'x', 'J', '669']