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, ['493', '5957', '69', '2861', '3137', 'H', 'i', '9403', '5147', '3481', 'N', '9', 'c', '9423', 'I', 'R', 'z']