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, ['G', 's', '4989', 'M', 'O', 'q', 'T', '411', '3349', '1377', 'F', '8613', '441', 'i', 'G', '1227', '6689', 'S', '7979', 'S']