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.
10, ['N', '6877', '1655', '1677', 'K', '8003', '9809', '6617', '8459', 's', '509', 'b', '3533', 'I', 'V', '8907', '4989', 't', 'n', 'C', 'A', 'B', 'r', 'K', 'X', '5183', '3617', '4235']