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: 1, ['Q', 'J']

A: Q
****
Q: 5, ['5945', '3475', '7789', '5501', 'V', 'Y', '4109', '1799', '585', '2855', 's', '3577', 'E', '3845', 'B', 'H', 'L', 'D']

A: 5945, 3475, 7789, 5501, V, Y, 4109, 1799, 585, 2855, s, 3577, E
****
Q: 1, ['2711', '6013', '6759', 't', '3603', '3755', 'M', '3011', '1211', '8869', '4441', 'z', '4731', 'd', 'H', '3803', 'O', 'G', 'R', 'P', '4599', '5989', 'a', '6221', '8243', '6697']

A:
2711, 6013, 6759, t, 3603, 3755, M, 3011, 1211, 8869, 4441, z, 4731, d, H, 3803, O, G, R, P, 4599, 5989, a, 6221, 8243
****