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, ['t', 'U', '7845', '5123', 'Q', '9091', 'n', 'Y', 'Q', '8893', 'z', 'B', 'D', 'l', 'B', 'F', '3515', 'e', '173', '3419', '8301', 'V', '1537', '5765', '143', '9281', 'g', 'e']