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, ['E', 'Q', '2107', '7535', 'Q', '3445', 'N', 'r', '5207', 'r', '6561', '8607', 'N', 'f', '2907', '2261', '5077', '4645', '3997', '4579', '6147', 'u', '9187', '9621', 'n']