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, ['J', '5353', '3509', 'j', 'p', 'u', '3145', 'J', 'G', '4801', 's', 'l', '6981', 'Q', '1211', 'o', '1031', '6271', 'K', '3611', '9249', 'F', 'l', 'b', '1199', 'i', 'k', '935']