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.
9, ['Q', 'Q', '2239', 'W', '1285', '2119', '2611', 'P', '195', '1057', '3361', 'd', '7207', '8693', 'R', 'O', 'N', 'p', '8903', 'h', 'l', 'J', 'L', '7709', 'Z', '1971', '6569', 'E', 'H', 'F']