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, ['3617', '6547', '1325', '35', '8763', '1407', 'K', '4719', '4165', '9077', 'g', '6209', 'd', '2651', '769', '9627', '2927', '6675', '2497', '63', 'c', '7833', '2693', '5623', '8943', '1371']