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.
4, ['3039', 'n', 'L', '5909', '5493', 'J', '983', 's', 't', '2355', '1461', '4921', '2275', 'J', 'a', 'T', 'D', '3251', '145', 'c', '2587', 'n', 'V', '7999', '2189', '8713', '6299', 'i']