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.

7, ['Y', '237', 'u', '6417', '8945', 'B', 'K', 's', '7275', 'o', '8239', 'Z', 'M', '2951', 'y', 'b', '3473', 'f', '6235', '1895']
Y, 237, u, 6417, 8945, B, K, s, 7275, o, 8239, Z, M

3, ['k', 'U', 'V', 't', '7875', 'E', 'i', '6211', '3549', 'Y', 'U', '7547']
k, U, V, t, 7875, E, i, 6211, 3549

6, ['9061', 'U', 't', '4513', '2687', '2171', '3519', '9309', '4979', 'u', 'F', '9439', '1529', '1853', '1725', 'C', 'B', 'G', '6359', '4503', 'N', 'o', 'N', '9967', '3167', 'W', '4999', '8353', '5009']

9061, U, t, 4513, 2687, 2171, 3519, 9309, 4979, u, F, 9439, 1529, 1853, 1725, C, B, G, 6359, 4503, N, o, N