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.
6, ['5873', '7397', 'B', '3309', 'Y', '5729', '6057', '9195', '7567', '6491', '3591', 'w', '8487', '5563', '2553', '9889', '1949', '1069', 'i', '1629', 'O', 'q', 'S', 't', 'Z', '3741', '2933', 'E', '9069', 'k']