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, ['605', 'F', 'N', 'W', '9053', '9473', 'K', '7987', '5217', '767', '2131', '1239', 'r', 'm', '7745', 'J', '7777', '59', 'C', '6817', 'P', '3993', 'z', '6581']