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, ['2111', 'f', '6687', '5517', '5813', '3571', 'U', '5851', 'F', 'q', '3047', 'd', 'p', 'O', '6477', '4411', '7061', 'a', 'D', '2429', '8021', 'O', 'z']