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.
2, ['1087', 'R', 'D', 'v', 'Z', 'r', '8349', 'N', 'X', '8927', 'k', '5593', '4775', 'g', '7439', '7277', 'b', 'F', 'o', 'e', 'G', '1921', '3461', '1841', 'K', 'e', 'A', '8539', '8071']