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.
1, ['5811', '8355', '9207', '2341', 'q', 'J', 'y', 'H', 't', '1523', 'i', 'c', 'a', '1391', 'U', '9833', '4667', 'm', 'i', 'w', '8963', '7733', '3603', '121', '3845', '101', '4877', '6687']