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, ['5157', '5561', '8679', 'M', 'u', '109', '1499', 'z', '5735', '5571', 'N', 'M', 'K', '8813', 'Q', 'r', '3245', 'R', '6909', '4647', '9449', 'm', 'e', '3955', 'f', '6539', 'g']