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, ['8859', 'Q', '9171', '4273', '6079', 'M', 'w', '4385', '711', '933', 'p', 'm', 'l', 'I', 'q', '4567', '4955', '2143', '2985', '6115', '9967', '413', '615', '1195', '3961', '9601', 'Y', 'r', '2329']