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.
2, ['9487', '7299', 'V', 'P', 'O', '8889', 'M', 'b', '9031', '4893', 'Y', '9485', '3577', 'j', '9391', 'Q', 'T', 'X', '2609', '4233', 'm', 'f', 'S']