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.
10, ['R', 'A', '9687', '5337', 'v', '3275', 'B', 'U', '207', 'm', '6745', '7435', '7221', '2861', 'm', 'n', 'i', 'S', '409', 'g', '7127', 'O']