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, ['2507', '7401', 'U', 'j', '981', 'z', '7539', '927', 'T', 'M', '1227', '207', 'a', '5113', '5079', '7003', '2635', '8229', 'n', '1863', 'u']