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.
1, ['Z', 'K', '3871', '6469', '157', '6113', '8039', 'T', '5617', 'b', '2969', '7955', '9255', 'e', 'E', '2809', '6441', '2761', 'j', '1975', 'b', '6247', '7827', 'x', 'n', '1813', '665']