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, ['8397', '3351', '9295', '3877', '5715', '7615', '6177', '5201', 'A', '2587', '4727', '4589', '7017', '625', '6949', '2165', 'j', '8521', 'H', '897', '8105', '3447', '8515', '8007', 'g', 'g', '4167', 'C', '8591']