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, ['6501', '8779', '4187', '7941', '2283', '9077', '1257', 'O', '6227', 'l', 'b', 'a', '4217', 'g', '6251', '4597', '4581', '6061', '75', '5437', '6107', 'q', 'a', '5495']