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.
6, ['T', 'A', 'k', 'V', 'D', 'L', '4081', '2681', 'M', 'A', '9209', 'u', '5629', 'b', '2777', 'o', 'r', 'V', '7217', '5997', 'z', 'q', '6713', '5375', '5941', '3431', 'q', '2329', 'T', '8489']