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: 5, ['1765', '4955', '7087', '3583', '9229', '3189', '5633', '125', '4819', 'R', 'o', 'V', '5683', 'D', '9427', 'l']
Student:
1765, 4955, 7087, 3583, 9229, 3189, 5633, 125, 4819, R, o