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.
7, ['c', '2369', '2505', '9691', '9097', '7581', 'O', '5597', '4453', 'h', '2193', '5233', '583', 'z', 'G', '8563', 'N', 'a', 'n', '5587', 'B', '3599', '2739', '5689', 'q', '8805', '2157', '4005']