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, ['H', '409', 'R', 'r', 'L', '5479', '7589', 'f', '2803', '7823', '8287', '6045', 'D', '6547', 'r', 'r', 'M', '31', 'h', '1721', '1075', '6431', '7533']