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.
4, ['v', '6047', '6919', '5525', 'p', '5881', 'X', '2113', '6715', 'K', '1283', '5557', 'C', '1427', '7911', 'a', 'M', '4205', 'F', '9399', '7217']