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: 1, ['x', '7625', 't', 'P']

SOLUTION: x, 7625, t

PROBLEM: 3, ['z', '6977', '5793', '8711', 'm', '7889', 'y']

SOLUTION: z, 6977, 5793, 8711

PROBLEM: 2, ['5809', 'b', 's', '7185', 'c', '981', '9153', 'F', 'x', '559', '2215', 'B', '1153', 'N', '1083', '9631', 'M', '637', '3699', 'Z', '7817', '7965', 'x', '7337', '6561', 's']

SOLUTION:
5809, b, s, 7185, c, 981, 9153, F, x, 559, 2215, B, 1153, N, 1083, 9631, M, 637, 3699, Z, 7817, 7965, x, 7337