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, ['1061', '4795', '9737', 'e', '363', '3935', 'p', '6105', '3781', '4487', 'h', 'r', 'I', 's', '8847', 'P', 'H', '5833', 'C', '6477', 'h', 'x', '9595', 'X', 'T', '5401', 'P']