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, ['4465', '4945', 'n', 'b', '2309', '4239', '9557', '4113', 'I', 'z', 'M', '8305', '973', '2391', 'J', '53', '2973', 'H', '27', '8685', '3', '9079', 'c', 'n', 'G']
Student:
4465, 4945, n, b, 2309, 4239, 9557, 4113, I, z, M, 8305, 973, 2391, J, 53, 2973, H, 27, 8685