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.
2, ['5809', 'b', 's', '7185', 'c', '981', '9153', 'F', 'x', '559', '2215', 'B', '1153', 'N', '1083', '9631', 'M', '637', '3699', 'Z', '7817', '7965', 'x', '7337', '6561', 's']