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.
5, ['3471', 'Z', '8909', '9409', 'v', 'G', '1941', 'V', 'q', 'I', 'X', 'A', 'E', '3127', 'r', 'Z', '6047', 'o', 'k', 'D', '199', '6145', 'v']