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.
6, ['e', 'i', 'q', '2467', 'm', '3045', '4727', '3421', '5553', 'J', 'h', 'g', 'u', 't', 'w', '4775', 'J', '773', '5745', 'w', 'd', '5095', '1045', 'R', '1003', '8273', 'S', '4905', 'r']