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, ['e', 'g', '3451', '9677', '4467', 'K', 'k', '7913', '3557', 'J', 'l', 'Y', '6939', '4715', '8457', 'z', '8509', 'A', '4461', '6649', 'Y', '4617', '4229', '7051']