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, ['5207', '5785', 'e', 'm', '1967', 'o', '4551', '1483', '4737', '5725', '5955', '8879', '2681', 'b', '7179', '2307', '4233', '43', 'p', '9033', '8477', '1639']