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, ['Z', 'i', '7115', 'd', 'i', 'C', '7015', '1645', 'T', '8501', '2689', '9811', 'u', '9861', 'T', '5823', 'G', 'O', 't', '5889', 'L', '4871']