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.
3, ['6877', 'l', 'K', '717', 'w', 'O', 'K', '8561', '8341', '3075', 'D', '4479', 'I', '975', 'Z', 'c', '2695', '6713', '3685', '7627', 'x', '4263']