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.
9, ['1151', 'N', 'z', '3641', '6541', '1485', '5575', '8765', '5865', '9677', '9613', '1457', '4449', '9629', 'o', 'g', '4289', '3983', '3253', '439', '3745', '5881', 'X']