Detailed Instructions: 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.
Problem:1, ['K', 'Y', '9585', 'X', '2281', '3541', 'D', 'X', 'g', 'H', '4003', 'n', '3367', '3779', '155', 'S', 'r', '4935', 'j', 'n', 'Z', '5985', '7297', '2743', 'n', 'r', '8611', '9069', 'o', '1015']
Solution:
K, Y, 9585, X, 2281, 3541, D, X, g, H, 4003, n, 3367, 3779, 155, S, r, 4935, j, n, Z, 5985, 7297, 2743, n, r, 8611, 9069, o