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.
3, ['7509', '2709', 'O', 'D', '4833', '4419', 'k', '3749', '2983', '3045', 'e', '5943', '8619', '9121', 'd', '1249', '5957', 'K', '7289', 'y', '3903', '185', 'P', 'j']