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.
2, ['N', '7471', '7435', '8313', 'i', 'u', '8583', 'B', 'r', '9367', 'j', '3377', 'T', '2539', '401', 'Y']