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.
10, ['d', 'w', '3141', '5757', '5717', '3859', 'k', '5881', 'A', 'V', 'D', 'm', 'E', '981', '4279', '3525', '9057', 'h', '199', '1057', 'm', 'x', 'E', 'V', '1073', '353', 'r', '5055']