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.

3, ['3901', 'l', 'h', '9541', '9307', 'm', 't', 'W']
3901, l, h, 9541, 9307

7, ['8363', 'm', 'i', '9887', '7645', '815', '9555', '2541', '2947', 'r', '7885', '6389', '3', '6109', '5441', '8731', 'N', 'J', '7977', 'C', '1683', '5875', '1105']
8363, m, i, 9887, 7645, 815, 9555, 2541, 2947, r, 7885, 6389, 3, 6109, 5441, 8731

2, ['2733', '3051', '2447', 'w', '9691', 'a', 'n', '7575', '3909', 'g', 'm', '1393', '6837', 'h', '6223', 'g', 'J', 'b', 'H']

2733, 3051, 2447, w, 9691, a, n, 7575, 3909, g, m, 1393, 6837, h, 6223, g, J