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.
1, ['O', 'q', 'q', '1391', 'f', '2893', 'N', '8443', '5317', 'C', '3379', 'l', '8481', '9647', 'c', 'o', '8859', '499', 'D']