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, ['e', '2049', 'o', '4363', '7787', 'c', '7487', 'L', 'p', 'a', '1385', '1293', 'n', '3879', '9613', 'C', 'a', '2975', '4001', 'K', '4203', 'X', '9209', 'E']