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.

6, ['3677', '7083', 'F', 'y', '9257', 'c', 'J', '8095', '8747', '7145', 'D', '1779', '7223', 'W', '177', '1635', '2055', 'z', 'O', 'M', 'z', 'I', 'A', '1809', '1629', 'j', 'j', 'e']
3677, 7083, F, y, 9257, c, J, 8095, 8747, 7145, D, 1779, 7223, W, 177, 1635, 2055, z, O, M, z, I

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

7, ['3561', 'z', '3317', '521', 'K', '5189', 'n', 'd', '6199', 'P', 'k', '557', 'i', 'O', 'S', 'D', 'P', '1775', '6127', 'e', '3125', 'c', 'z', '3569', '5285', '3307', '5871', '8009', '5869', '9385']

3561, z, 3317, 521, K, 5189, n, d, 6199, P, k, 557, i, O, S, D, P, 1775, 6127, e, 3125, c, z