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.
8, ['197', '349', '3249', '5413', 'g', 'u', 'b', 'b', 'T', 'O', '6723', '431', 'o', '7409', '7635', '2567', '1621', '6113', 'K', '7011', 'S', 'k', '8861', '3665', 'C', 'e', 'g']