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.
6, ['419', '4787', 'w', 'O', 'f', '6079', '3445', 'y', 'c', 'D', 'm', '6333', '6583', '3329', 'S', '6175', '9329', 'D', '9983', 'b', 'G', '7755', '5823', '5931', '9495', '6397', '9371']