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, ['8989', '9905', 'z', 'I', 'x', 'j', 'd', '9889', '2283', '8635', 's', '1715', '9971', '517', 'A', '9255', 'O', 'I', 'b', '8683', 'X', '5391', '1295', '7127', 'f', 'n', 'j']