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: 7, ['1271', 'y', '9543', '5773', '567', '8609', 'Q', '8599', '1801', '4245', 'U', 'z', 'a', '3753', '3283', '9711', 'N']

A: 1271, y, 9543, 5773, 567, 8609, Q, 8599, 1801, 4245
****
Q: 2, ['559', '8799', '4791', '6513', '5939', '3477', 'w']

A: 559, 8799, 4791, 6513, 5939
****
Q: 9, ['6299', '3195', 'm', '8167', 'F', 'B', 'B', 'Q', 'z', 'b', 'O', '3107', 'M', 'p', 'U', '2025', 'X', 'u', 'Y', 'W', '7097', 'H', '5673', 'E', '1445', 'K', '303', '3233', '7573', 'E']

A:
6299, 3195, m, 8167, F, B, B, Q, z, b, O, 3107, M, p, U, 2025, X, u, Y, W, 7097
****