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: 5, ['Y', 'r', '9549', 'A', 'W', '9491', '1261', '2453', '5669', 'd', '9411', '1809', '581', 'O', '1969']

A: Y, r, 9549, A, W, 9491, 1261, 2453, 5669, d
****
Q: 11, ['1243', 'V', 'G', '9199', '6703', '6297', '4883', 'Y', '783', '6025', '9495', 'q', 'U', 'Q', '6707', 't', '4141', '4765', '3001', '1501', 'X', '9493', 'H', 'R', 'Q', '437']

A: 1243, V, G, 9199, 6703, 6297, 4883, Y, 783, 6025, 9495, q, U, Q, 6707
****
Q: 3, ['6455', 'c', 'B', '6211', 'e', 'k', '417', 'w', '1003', '7089', 'C', '8465', 'D', 'r', '237', 'E', 'V', 'M', '879', 's']

A:
6455, c, B, 6211, e, k, 417, w, 1003, 7089, C, 8465, D, r, 237, E, V
****