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, ['1413', '4661', 'o', '4557', 'j', '5297', '5755', 'u', 'I', '1715', 'l', '1249', 'j', 'P', 'P', '927', 'o', 'c', '2237', 'w', '1413', '235', 'f', '6477', 'B']