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.
11, ['6309', 'a', 'Q', 'O', 'l', 'a', '6283', 'j', '6427', '5297', 'K', '6089', '5147', '3041', 'F', 'D', 'F', '3609', 'B', '2249', '2103', '6213', 'i', 'x', 'c', 'k', 'r']