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.
7, ['3651', '835', '6653', '8103', '6205', 's', '9485', '8069', 'J', 's', '3261', 'U', '2017', '677', '3009', '959', '8659', '3609', 'm', 'u']