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.
10, ['2291', 'U', '4391', '1323', 'e', 'e', 'h', '1339', '7691', '1485', '9935', '2075', 'M', 'Z', '4261', '7387', '3715', 'V', 'H', '8297', '245', '8511', '4845', '151', '4907', 'G', 'V']