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.
11, ['k', '1231', 'P', 'g', 'F', '575', 'v', '2701', '7835', 'o', '3135', '2567', 'm', '4901', '1257', '8973', '2025', 'X', '8591', '1101', '4159', 'a', 'X', 'Z', 'a', '5349', '2563', 'r']