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.
6, ['7653', 'i', '1503', '7003', 'h', 'o', 'a', 'E', '7873', 'L', '5193', '8717', 'P', 'O', '3667', 'i', 'K', '2127', '7251', 'T', 'D', '9717', 'N', 'X', '6919', '6765']