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, ['413', '1223', 'r', 'r', 'a', '8219', 'N', 'a', 'z', 'g', '8297', 'y', 'c', '1569', 'x', '1343', '4263', 'e', 'n', '9349', 's', '4567', '4295', 'K', '6035', 'r', '4001', 'K']