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, ['k', 'N', '2195', 'b', '5683', '5631', '6567', '989', '6231', '2925', '4317', 'H', '9489', '7653', '6709', 't', '1519', '531']