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.
12, ['y', 'c', '6251', '8679', '6297', 'L', '8639', 'w', '1087', '4429', 'v', 'R', 'b', '2219', 'd', 'Q', 'n', '9721', '973', 'E', 'c', 'Y', '6707', '2047', '1269', '4051']