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.

[Q]: 2, ['g', 'j', 'a', 'h']
[A]: g, j


[Q]: 1, ['x', '7625', 't', 'P']
[A]: x, 7625, t


[Q]: 1, ['G', 'C', '6643', '3083', 'o', '8433', 'L', 'f']
[A]:
G, C, 6643, 3083, o, 8433, L