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, ['3187', 'S', 'z', 'A', 'Z', '9473', '6627', '2465', '4033', 'I', 'j', '3297', '2793', '9619', '2471', 'O', 'H', '6361', '1197', '4035', '8515']