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.
9, ['811', '2245', '8339', '1033', 'C', 'q', 'U', 's', 'X', '7173', '6787', '4573', '3475', 'H', '1225', '6139', 'Q', 'k', '5111', '4845', '5013', 'c', '9973', 'Z', 'J', 'b']