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.
3, ['N', '5001', '4165', '7713', '5997', '4129', '6145', '4101', 'H', '4323', '6441', 'O', 'o', '13', '803', '7837', 'K', '7539', 'n', '1', '4353', '7809', '1203', '5341', 'T', '1359']