Instructions: 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.
Input: 6, ['7655', '8897', '4825', 'o', '2823', '6549', '6107', '83', '1161', 'R', 'M', 'y', '2835', '637', 'U', 'E', '2565', 'Q', '3145', '3943', '9639', 'D', 'L', '3767', '6871', 'P', '4493', 'n', 'k', 'M']
Output:
7655, 8897, 4825, o, 2823, 6549, 6107, 83, 1161, R, M, y, 2835, 637, U, E, 2565, Q, 3145, 3943, 9639, D, L, 3767