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.
2, ['6413', '4501', '4583', '593', 'h', 'T', 'J', '9879', 'x', '6907', '9505', '925', 'l', 'h', 'o', '6749', '5773', '1547', '6469', '6287', '4311', 'z', 'l']