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.
5, ['j', 'C', '7217', '9667', 'K', '2929', '6197', '8345', '3407', 'X', '7289', '6931', 'd', '3993', '5495', 'p', 'm', 'K', 'z', '8899', 'S', '7339', 'P', '4047', 'R', 'Y', 'o', 'R', '2357']