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, ['6687', '4355', '9537', 's', '1955', '2355', '4241', '895', '6975', 'y', 'j', '7709', '9163', '3069', 'd', '9901', '8513', '9189', '529', '2675', '9789', '8663', '7745', 'y', '6093']