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.
3, ['O', '8595', 'g', '1323', '2707', 'E', 'b', 'P', 'w', '4531', '6741', '9529', '9457', '1499', '2977', '283', '8101', 'M', 'a', 'g', 'n']