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, ['f', 'Q', '9125', '9823', 'o', 'R', 'i', '2491', 's', 'j', 'a', '9071', 'y', '6207', 'x', 'n', '2941', 'w', '1465', 'i', 'O', '2563', '7025', 'f', '1723', '6637', '7083', 'j', '4143', 'h']