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, ['2791', 'e', 'o', '5685', 'n', '1207', '7433', 'W', 't', 'O', 'e', 'D', 'U', 'f', '6607', 'Z', 'R', '4227', 'J', 'G', '6589', 'B', 'x', '7399', 'g', '9029']