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.
10, ['2557', '9617', 'c', 'i', 'x', 'J', '4439', '4491', 'f', '533', '9287', 'o', '419', 'P', 'T', '9963', '7443', '8201', '39', 'g', '725', 's', '7187', '9289']