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.
7, ['o', 'x', 'B', 'g', '6637', 'V', '9137', '2265', 'T', '2105', 'r', '3021', '9527', 'h', '3777', 'P', 'x', 'r', 'Z', 'h', '741', '9021', 'L', '5873', 'C', '5941', 'g', 'Q']