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.
15, ['4701', 'r', '2993', 'S', '3623', '351', 'i', '3901', 'Q', 'I', 'M', 'o', '8339', 'A', 'o', '8271', 'v', 'b', '1421', 'N', '7939', '2785', '2809', '9895', 'G', 'U', '4605', '8177', 'L', '5391']