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, ['1587', '8273', 'f', 'O', '8431', 'V', 'g', 'D', 'Q', '5087', '6435', '669', 't', '4857', '8121', 'C', 'C', '7953', '5457', '8197', '8137', '4367', '763', '3031', '593', '8797', '6485', 'K']