Teacher: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.
Teacher: Now, understand the problem? Solve this instance: 6, ['1629', '3345', '1143', 'Y', 'H', '2465', '1087', 'P', 'r', '2897', '3577', '1877', '8857', 'o', 'o', '1997', '4827', 'q', 'j', '8677']
Student:
1629, 3345, 1143, Y, H, 2465, 1087, P, r, 2897, 3577, 1877, 8857, o