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

2, ['9055', '7811', 'd', '7067', '4593', 'F', '9261', 'H']
9055, 7811, d, 7067, 4593, F

7, ['7429', 'j', 'L', 'k', '5561', '1065', 'T', '87', '5719', 'j', 'd', 'v', '835', '4055', 'N', 'z', 'P', '1821', '4645', '6375', 'o', '6481', '7383', 'a', '8747']
7429, j, L, k, 5561, 1065, T, 87, 5719, j, d, v, 835, 4055, N, z, P, 1821