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.
6, ['n', '5223', 'S', '3439', '3703', '411', 'i', 'L', 'h', 'c', 'v', '3811', 'k', '6963', 'x', 'E', '3825', '6865', '7365', '3457', 'A', '1731', '9237', '8609', 'e']