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: 3, ['M', '1295', '9707', '1995', '9579', 'h', 'x', '487', '8415', 'C', 'M', '383', '507', '2327', '3033', '3429', '6075', 'v', '1855', '5369', 'l', '7397', '511', '857']
Student:
M, 1295, 9707, 1995, 9579, h, x, 487, 8415, C, M, 383, 507, 2327, 3033, 3429, 6075, v, 1855, 5369, l