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.
14, ['N', 'X', '3229', 'y', '6655', 't', 'Q', 'I', '691', 'C', 'y', 'C', '2871', '485', '2321', 'd', '1231', 'T', 'w', '863', 'a', '4579', 'E', 'Z', 'i', '783', '5421', '3581']