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]: 7, ['8783', '5381', '2769', '6961', '5223', 's', 'U', 'i', 'd', 'F', '8159', 't', 'H', 'e', 't', '3747', '8047', '8479', '4807', 'T']
[EX A]: 8783, 5381, 2769, 6961, 5223, s, U, i, d, F, 8159, t, H

[EX Q]: 2, ['L', 'V', '7357', 'p', 'P', 'B', '6813']
[EX A]: L, V, 7357, p, P

[EX Q]: 12, ['5305', 'H', 'E', 'M', '6783', '3809', '175', 'C', 'g', '9811', 'M', '2659', '7309', 'M', 'L', '8537', '7011', '2327', '5193', 'p', '1507', 'n', '9129', 'j', 'R', '9771', 'Y', '3461', '5029']
[EX A]:
5305, H, E, M, 6783, 3809, 175, C, g, 9811, M, 2659, 7309, M, L, 8537, 7011