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.
4, ['1845', 'M', 'N', 't', '4149', 'e', '2931', '7373', '9165', '9709', 'n']