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.
12, ['9431', 'd', 'i', 'N', '429', '1455', 'G', 'N', 'H', 'P', '4935', '2421', '7235', '8605', 'j', 'd', '8115', '9233', 'I', '9745', 't', '201', '8015', '1851', '9827', '2931', 'm']