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.
10, ['X', 'z', 'K', '1603', '1493', '205', '1157', 'J', '2251', 'g', '3685', '9167', '9065', '9855', 'k', '531', '2559', 'w', 't', 'm', '6223', 'O', '8153', '4313', 'T', 'i', '1771', '5465']