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.
2, ['3513', 'u', 'A', '279', 'J', 's', '1419', '2451', '7815', '6151', 'T', 'P', '2545', 'A', 'v', 'L', '2109', '3571', '5887', '2491', '2851', 'v', 'H', '8439']