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.
8, ['6197', 'P', '6471', 'S', 'M', '113', 'g', '5681', '1319', '995', 'r', 'W', 'D', 'o', '7181', '3497', '6403', 'a', '5379', '2129', '4601', 'w', 'X', '6125', 'h', '6621']