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.
4, ['127', '1171', '2455', 'c', 'v', '3643', 'P', 'p', '8685', '9041', '8349', '4667', '6593', '6767', '1579', 'W', 'z', 'R', 'e', '6451', '6025', '5379', 'p', '5917', '7923', '9927', '7687']