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.
4, ['o', 'P', 'P', '2699', '8671', '4981', 'k', 'H', 'h', '5439', '9229', 'K', '5923', 'h', 'Y', 'f', '3863', '8625', '1017', 'W', '4569', '4671']