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, ['T', 'D', '6925', 'W', 'J', 'Q', '1373', '3577', '6399', 'd', '281', '6631', '2847']

A: T, D, 6925, W, J, Q, 1373, 3577, 6399, d, 281
****
Q: 3, ['8109', '3725', '4809', 'n', '1761', 'u', '7147']

A: 8109, 3725, 4809, n
****
Q: 7, ['9185', 'D', 'K', '8963', 'E', 'P', '6665', 'W', 'r', 'p', '6943', 't', 'l', 'K', '9731', '3107']

A:
9185, D, K, 8963, E, P, 6665, W, r
****