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.
5, ['B', '9233', 'G', 'H', 'I', '2645', 'Y', '573', 'H', 'J', '199', 'I', '8439', 'K', 'q', 'K', 'f', '7887', '6391', 'k', '3871', '3383', '7699', '8175', 'i', '9823', '4313']