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.
1, ['o', '6231', '6101', '5605', 'V', 'l', '6785', '5887', '8569', '5333', '6313', 'h', 'Y', '5183', '4553', '5259', '1675', '6201', '4243', 'F', '9845', '8195', '3471', '7339', 'S']