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, ['5517', '1801', 'G', '9107', 'q', '9385', '3431', '6831', '9841', 'B', 'h', '263', '2521', 'B', '3689', 'n', 'w', '1295', '1897', '3691', 'b', 'D', 'h']