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.
10, ['i', 'A', 'P', '6705', '9793', 'A', '1925', '8231', '6093', 'j', 'D', '5609', '4629', 'h', 'Y', 'H', 'O', 'I', 'G', '1209', '2381']