TASK DEFINITION: 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.
PROBLEM: 12, ['125', 'm', 'Z', 'U', '5187', '1847', '3597', 'x', 'l', '5521', '6473', '3801', 'E', '3577', '6383', '7463', '7343', '6981', 'E', 'p', 'H', '7193', 'K', '4875']

SOLUTION: 125, m, Z, U, 5187, 1847, 3597, x, l, 5521, 6473, 3801

PROBLEM: 10, ['l', '2397', '5303', '7039', '23', 'L', '5851', '8793', '8045', '9677', '4237', '7223', 'm', '4389', '2653', '4567', '2453', 'W', 'c', 'J', '1149', 'X', '1137', '9719']

SOLUTION: l, 2397, 5303, 7039, 23, L, 5851, 8793, 8045, 9677, 4237, 7223, m, 4389

PROBLEM: 5, ['7425', 'B', 'X', '8605', 'K', '9785', '8173', '8941', '9651', '7359', 'y', 'm', 't', '1115', 'y', 'u', '3863', '5185', 'r', '6685', '4537', 'Q', '3841', '7299', '3599', 'p', '2593', '5951', '7603', '2009']

SOLUTION:
7425, B, X, 8605, K, 9785, 8173, 8941, 9651, 7359, y, m, t, 1115, y, u, 3863, 5185, r, 6685, 4537, Q, 3841, 7299, 3599