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, ['q', 'T', '153', '4803', '6429', '3841', '7973', 'D', '3439', 'L', 'u', 'b', '5251', '2641', '9839', '9297', '9975', 'O', '1105', '1403', 'a']