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, ['7647', '6955', 'J', '185', 'A', '2903', 'P', '5899', 'M', 'Q', '865', 'e', '6289', '6287', 'D', 'f', '4723', 'F', '8509', '5299', 'V', '7731', '2369', '8965', '4763', '451']