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, ['J', 'W', '7117', 'b', '1359', 'F']

SOLUTION: J, W, 7117

PROBLEM: 2, ['2559', 'z', 'J', 'Z']

SOLUTION: 2559, z

PROBLEM: 2, ['k', 'k', 'A', '5571', '3033', '5481']

SOLUTION:
k, k, A, 5571