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.
4, ['7335', '6217', 'm', 'o', '9447', '9877', '2985', 'f', 'g', 'X', '3495', '5451', 'C', 'C', 'P', 'e', 'I', 'w', 'A', 'Z', 'a', '1715', '5765', '3783', '1615', 'N']