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.
8, ['G', '4671', '5563', '9185', '7393', 'N', '8251', 'p', '2701', '459', 'm', 'f', '1909', '3643', '4809', 'C', '7121', 'p', '8249', 'L', '3789', '3593', 'w', 'L', '9749']