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.
9, ['2627', 'X', '4967', 'w', '7345', 'g', 'O', '6227', '263', '821', 'Y', '1753', '2849', '3659', '7141', 'Q', '8593', 'o', '5067', 'k', '1381', '6363', '7769', '5741', 'e', 'R', '6937']