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, ['X', 'n', 'Y', '6573', 'L', 'B', '4983', 'B', '1059', 'f', '4225', '8159', '8525', 'F', 'v', '9443', 'C', '7853', 'k', '1691', '7353', '1715', 'k', '2021', '4425', '2135']