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.
1, ['6397', '6355', 'z', 's', 'x', '9897', 'K', '9207', 'n', '3045', 'a', 'F', 'i', '389', '9639', '8853', 'I', '1989', 'j', 'a', '7351', 'e']