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.
12, ['d', 'q', 'm', 'O', 'l', '7565', '2389', '6281', 'g', 'D', '6457', 'S', '2395', '8403', '5007', '1917', 'L', 'd', '5493', '4475', 'N', 'y', '103', 'c', 'x', 'I', '7715', 'M', '3005', '3851']