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, ['t', 'W', 'a', '369', '9821', 'x', 'V', 'b', '1751', 'i', 'y', 'r', '3537', 'i', '5199', 'Z', '4831', 'D', 'r', '1851', 'i', 'k', '6401', '2161', 'A', '6421']