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.
4, ['k', 'E', '1315', 'a', 'd', 'w', '5649', '6751', 'k', 'E', '1201', 'E', 'U', 'U', '8823', '8395', 'W', 'Y', '1395', 'L', '5583', '2879', '2657', '2773', '4489', '6145', '6845', '5663', 'G', 'g']