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.
12, ['I', '8577', 'j', '3975', 'P', 'g', '9613', '3191', '3621', 'z', '5835', 'r', 'Y', 'S', '1293', 'q', '2453', '3497', '8731', 'j', '4361', 'H', '5601', 'y']