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.

[EX Q]: 3, ['T', 'g', '4755', 'O', 'G', 'Z', 'r', '9337', '2691', 'h', 'j', '4271', 'T', '5217', 'a', '9671']
[EX A]: T, g, 4755, O, G, Z, r, 9337, 2691, h, j, 4271, T

[EX Q]: 7, ['839', '5995', '359', '497', '7397', 'g', 'T', 'o', 'd', '8979', 'h', 'e', '497', 'Y', '4977']
[EX A]: 839, 5995, 359, 497, 7397, g, T, o

[EX Q]: 14, ['2575', '2743', '5821', '4465', '2033', '9391', '9447', '185', '5885', 'u', 'Y', '2887', '677', 'M', '9931', 'P', '9595', '4837', '2895', '5591', '2023', '5721', '1703', '8167', '41', 'Q', '5157', '9883', 'd', 'f']
[EX A]:
2575, 2743, 5821, 4465, 2033, 9391, 9447, 185, 5885, u, Y, 2887, 677, M, 9931, P