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, ['8291', '609', '1363', 'K', '1301', 'R', '507', '3041', '6367', 'm', 'i', 'm', '9347', 'p', '9315', 'k', '5371', '6009', 'y', 'D', 'K', '6883', 'a', 'M', 's', 'g', 'W', 'P']