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.

2, ['4785', 'g', '7381', 'J', 'R', 'e', 'N', 'v', '6201', 'Y', 'h', 'e', '7723', 'Y', 'm']
4785, g, 7381, J, R, e, N, v, 6201, Y, h, e, 7723

3, ['J', 'W', '7117', 'b', '1359', 'F']
J, W, 7117

4, ['M', 'h', '3519', '8307', '5257', '3647', '3433', '5823', '4721', '6931', 'g', '8253', 'I', '6617', '8995', '8143', '4263', '2697', '5095', 'i', 'Q', '3063', 'M', 'U', '7805']

M, h, 3519, 8307, 5257, 3647, 3433, 5823, 4721, 6931, g, 8253, I, 6617, 8995, 8143, 4263, 2697, 5095, i, Q