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]: 6, ['g', '2043', '6243', '8743', '2557', '8847', '663', 'D', 'M', '6503', 'u', 'W', 's', '3707', '4763', '6937']
[EX A]: g, 2043, 6243, 8743, 2557, 8847, 663, D, M, 6503

[EX Q]: 1, ['9539', 'p']
[EX A]: 9539

[EX Q]: 4, ['D', 'O', 'z', 'y', 'K', 'A', '4311', 'o', 'O', '6391', '4797', 'n', '9391']
[EX A]:
D, O, z, y, K, A, 4311, o, O