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, ['8423', '2155', '9585', '5693', '7507', '8153', '7245', 'g', 'G', '9953', 'o', '8925', 'q', '8471', '741', '4115', '7787', '6681', 'A', 'E', 'n', 'h', '3997', 'P', '7583']