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.

2, ['k', 'k', 'A', '5571', '3033', '5481']
k, k, A, 5571

4, ['9827', '4159', '8267', 'B', '609', '2119', '7671', '6383', '6683', 'f', '8495', '9171', '5869', '2415', 'H', '7187', 'j', 'I', 'Y', 's', 'v', 'l', 'D']
9827, 4159, 8267, B, 609, 2119, 7671, 6383, 6683, f, 8495, 9171, 5869, 2415, H, 7187, j, I, Y

5, ['4885', '7973', '4539', 'j', '8423', 'c', '4499', '681', '5685', 'N', '5193', '1307', '7445', 'A', '267', 'H', '6953']

4885, 7973, 4539, j, 8423, c, 4499, 681, 5685, N, 5193, 1307