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: 2, ['U', 'l', 'M', '1741']

SOLUTION: U, l

PROBLEM: 1, ['w', '111']

SOLUTION: w

PROBLEM: 9, ['r', 'd', 'v', 'e', 'A', '1725', '849', 'j', '2945', '8155', '3501', '2863', 's', '7579', '6661', '3763', '3083', 'n', '8483', '9833', '2451', 'U', '9263', '7047', '4243', '9497', 'G', '2093', 'j']

SOLUTION:
r, d, v, e, A, 1725, 849, j, 2945, 8155, 3501, 2863, s, 7579, 6661, 3763, 3083, n, 8483, 9833