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, ['2197', '7093', 'm', '8509', '3271', '2617', '2913', 'A', '2035', '6073', 'c', '9189', '2965', '7323', 'Y', 'c', '4415', 'M', '6147', 'g', '3377', 'D', 'k', '9799', 'A', '9563']