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.
5, ['1823', 'i', '8125', '1487', 'b', '5807', '2535', '5739', '4593', '8731', '9407', '1629', 'Z', '597', 'h', '2379', 'y', '341', 'g', '9615', '719', 'Z', '3695', '5919', 'g', '9897', 'g', 'Y']