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.
6, ['M', '3767', 'p', '8625', 'Y', 'Z', '961', '3109', '6115', '4233', 'C', '8131', '6471', 'U', '3255', '1213', 'L', '3785', 'z', '8903', '1891', '383', '9335', 't', '957', 'w', '4787']