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.
10, ['q', 'F', 's', '5771', '1977', 'H', '1825', 'a', 'P', 'v', 'N', 'd', '4547', '4057', 'C', '8387', 'o', 'D', 'g', 'Z', '3985', '6555', '485', '4613', '2491', '6373', 'a', 'N', 'a', 'M']