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, ['5881', '5053', 'A', '6785', 'q', '4973', '5659', 'z', '5403', 'D', 'a', 'J', 'L', '903', 'n', '2093', '8791', 'f', '5155', 'J', '9997', 'c', 'V', '9139', 'Q', '5843', 'F']