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.
11, ['Q', '5555', 'r', '8651', 'v', 'S', 'U', '3633', '6005', 'f', '8445', '7153', 'e', '8685', 'U', '5641', '1973', 'E', 'w', '9523', 'f', 'y', '1171', 'Q', 'Z', '7219', 'M']