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, ['4745', '1001', 'z', 'c', '143', 'd', '3291', 'r', '5543', '8577', '251']

SOLUTION: 4745, 1001, z, c, 143, d, 3291, r, 5543

PROBLEM: 2, ['843', 'v', 'B', '8973', '3865', 'R', '3077', 'H', '1685']

SOLUTION: 843, v, B, 8973, 3865, R, 3077

PROBLEM: 2, ['4555', '4923', '263', '5283', 'r', '5195', 'h', 'E']

SOLUTION:
4555, 4923, 263, 5283, r, 5195