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, ['M', 'z', 'g', 'Z', '2647', '8391', '2885', '4471', '7453', 'y', 'C', '4859', 'K', 'R', 'u', '4069', 'S', 'N', 'F', 'Q', '8685', 'P', 'l', '3989', '7001', '4667', '3433', 's', 'S', '4577']