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, ['k', 'D', '4155', '4495', 'w', '4635', '9281', 'w', '7515', 'x', 'C', '971', 'N', '7635', 'H', '6299', 'X', '2119', 'C', 'T', 'C', '3929', 'b', '9991', 'm']