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.
6, ['N', '3531', '6877', '1013', '3051', 'z', '5691', '8729', '8319', 'g', '8857', '1131', '4879', 'a', '9931', 'y', '4823', 'o', '1113', 'f', 'm', 'p', 'm', 'o', 'M', 'x', '4857', 's', '4325', 'A']