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.
9, ['9177', 'B', 'p', 'N', 'h', '1557', '6075', 'l', '2541', '9359', 'N', '4499', 'Z', '8385', 'Q', '4599', '2971', '5965', 'b', '3219', '1107', 'r', 'E']