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, ['K', '7289', '5127', 'J', 'K', '6587', 'g', '6767', 'i', '5969', 'g', 'A', 'k', '3717', '4461', 'A', 'J', '8079', 'T', '1731', '5215', 'c', '661', 'P', '4979', '449']