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.
12, ['7655', 'i', 'E', '8353', 'w', 'A', '7941', 's', '1867', '7649', 'l', '3987', 'm', '3391', '5351', '1291', '9363', '8785', 'H', '4077', 'K', 'K', 'r', 'q', 'c', '5675', 'R', 'y']