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.
9, ['J', 'M', 'W', '5759', 'n', 'U', 'C', '5041', '5711', '111', 'h', '5727', '7081', 'E', '3415', '6225', 'x', '9647', '7323', 'I', '4119', '7409', 'X']