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, ['y', '9251', '9425', 'B']

A: y, 9251
****
Q: 5, ['6765', 'p', '8607', '6089', 'b', 'r', '5143', 'V', '8725', '8499', '3323']

A: 6765, p, 8607, 6089, b, r
****
Q: 4, ['Q', '215', 'p', 'V', '1537', '3259', 'w', 'M', '1161', 'w', '4911', '7583', '9749', 'h', 'G', '6405', 'q', '8491', 'Z', 'j', '3855', 'd', 'm', 'o', 'c', '9057', 'z']

A:
Q, 215, p, V, 1537, 3259, w, M, 1161, w, 4911, 7583, 9749, h, G, 6405, q, 8491, Z, j, 3855, d, m
****