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.
12, ['J', '6271', '4779', '2143', '4663', 'b', 'w', '6287', 'g', 'l', 'o', 'A', 'L', '6119', '3517', '7015', '6755', 'j', 'N', '1665', '4565', 'a', 'K', '6591', 'q', '4909', '2719', '9225', 'V']