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.
8, ['3223', 'n', '8569', 'm', 'l', 'N', 'E', 'm', 'c', '9905', '6923', '5605', '4007', 'g', 't', 'r', 'W', 'I', 'N', 'H', 'K', '5847', '2191', 'Y', 'X', '6917', 'r', '3941', '1519', 'm']