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.
2, ['A', '8635', '4527', '3173', 'G', '5727', '4535', 't', '9605', '6657', '241', 'L', 'y', 'c', 'A', '5105', '4899', '5935', 'r', 'd', '8105', '1737', '9621', 'X', 'p', 'y', 'y', '489', '8443']