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, ['x', '1501', 'A', 'W', '3929', '5327', '5691', '7531', 'S', '9879', '6243', 'W', 'J', 'p', '411', '9971', 'R', '3025', '4199', 'F', '4169', '2507', 'c', '8447']