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, ['C', 'Q', 'C', '2583', 'S', '7127', 'Q', 'E', 'R', 'g', 'A', '2101', 'C', '2689', '1003', '4603', '7077', 'S', 'S', '31', '8613', 'B', 'u', '4709', 'E']