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, ['g', '3159', 'f', '1495', '291', 'Q', '2941', '9257', '7821', 'e', '6055', '3719', '89', 'i', '3085', '2575', '6705', 'I', 'z', 'Z', '9139', '2397', 'i', 'L', '8931', '6069', 'r', 'N']