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.
9, ['h', 'C', '5735', 'F', 'R', '1237', 'K', 'r', '4425', '5405', 'O', '9783', 'E', '3491', 'Q', 'F', '4383', '7201', 'e', '2601', 'V', '1585', '6543', 'D', '2851']