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.
8, ['373', 'E', 'X', 'l', 'Q', '9343', '5921', '8467', '1351', 'a', '1793', '4277', 'R', '7055', 'S', 'i', 'e', '2667', '1311', 'k', 'j', 'I']