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: 3, ['3901', 'l', 'h', '9541', '9307', 'm', 't', 'W']

SOLUTION: 3901, l, h, 9541, 9307

PROBLEM: 3, ['7081', 'H', 'T', '295', '1469', 'E', 'V']

SOLUTION: 7081, H, T, 295

PROBLEM: 2, ['7799', '9251', '9759', 'L', '21', '8799', '6761', '7901']

SOLUTION:
7799, 9251, 9759, L, 21, 8799