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.
8, ['a', '3423', 'k', 'M', '9783', '2323', 'H', '2099', '93', '3759', '2127', 's', 's', '1083', '1249', '7369', '3423', '5411', 'o', 'q', 'B', '4089', '8033', 'X', 'y']