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.
7, ['2701', 'A', '8149', 'W', '4411', 'H', '1399', 'z', '6915', 't', '2917', 'a', '4171', '9567', '4119', 'Q', 'h', 'p', '849', 'K', '6397', '3911', '8457', 'd', 'L', 'm', 'd']