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, ['839', '5995', '359', '497', '7397', 'g', 'T', 'o', 'd', '8979', 'h', 'e', '497', 'Y', '4977']

A: 839, 5995, 359, 497, 7397, g, T, o
****
Q: 5, ['l', 'M', '5143', '6301', 'W', 'H', 'D', 'o', '7457', 'o', '5021', 'a', '5621', 'g', 'A', 'Q', 'X', 'X', 'b']

A: l, M, 5143, 6301, W, H, D, o, 7457, o, 5021, a, 5621, g
****
Q: 5, ['X', '2957', '4807', '333', '305', 's', 'o', '5483', 'e', '4971', '8379', '8053', '1765', '1115', '1995', 'a', '4571', 'P', 'K', 'V', '6911', 'E']

A:
X, 2957, 4807, 333, 305, s, o, 5483, e, 4971, 8379, 8053, 1765, 1115, 1995, a, 4571
****