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, ['1685', '5915', 'E', '1487', 'a', 'o', '831', 'd', 's', '9559', '6005', '7671', '2425', 'l', '1305', '8397', '5495', 'O', '4509', '589', 'I', 'G', '3619', 'k', 'G', '5905', 'G', 'G', 'U']