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.
7, ['2161', '1647', '4109', 'V', '5127', '8887', 'o', 'n', 'n', '5397', 'i', 'J', '2565', '5559', '7379', 'T', 'Y', '3605', 'H', 'N', 'M', 'Q', '4211', 'J']