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, ['6919', 'j', '2873', 'P', '6663', '1905', 'F', '4901', '1019', 'O', '5341', '2027', 'D', '5649', '2847']