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.
9, ['9461', 'o', 'A', 'A', 'r', 'H', '5639', '6567', 'L', 'Q', 'Y', '1395', '9787', '2357', 'H', 'N', 'v', '6085', 'p', '411', 'c', '1053', 'x']