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.
14, ['1951', '6857', '2627', '2249', 'D', 'p', '8553', '2407', 'x', 'e', '6869', '3155', '4807', '9085', 'g', '343', 'p', '3099', 'd', 'Y', '4661', 'p', 'd', 't', '893', '4005', '5997', 'E', '6333', '569']