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.
3, ['i', 'M', '1035', '6461', '8201', '7429', '9869', '8417', 'R', 'f', 'Y', 'o', '5765', 'h', 'T', '1985', 'T', 'k', 'j', 'G', '9607', '8145', 'w', 'o', '6613', 'G']