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', 'J', '245', 'A', 'h', '1585', 'T', '7871', '9685', '9805', 'J', '803', 'O', '8881', 'q', '8391', '6525', 'd', 'N', 'B', '8785', 'j', '6753', '6815', 'l', 'i']