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.
7, ['f', '3079', 'J', '2663', 'J', '9057', '2151', '7631', 'o', '6569', '2773', '1781', 'U', '1017', 'G', '9361', 'W', '9097', '2199', '2139', 'o', 'p', 'S', '5855']