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.
7, ['c', 'H', 't', '8521', '6155', 'B', 'K', '1219', '4801', '9075', 'r', 't', 'H', '7215', '6299', '3073', 'b', '341', '6467', '8281', 'I', '711', 'O', 'P', '2805', 'y', '1905', '7117', 'O', 'Q']