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, ['Z', '8849', '2455', '9287', 'D', 'c', '5517', 'P', '2007', 'N', '7805', 'z', '5067', '6929', '8651', 'C', 'l', '7267', '493', '3975', 'E', '2841', '9073', 'I', 'V']