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.
Input: 10, ['W', '9645', '8939', '2167', 'w', '4023', '4813', '6717', '5085', 'Q', 'M', '4109', '9319', '3701', '8275', 'c', '4511', '1063', 'g', 'O', '8249', 'x', 'x']
Output:
W, 9645, 8939, 2167, w, 4023, 4813, 6717, 5085, Q, M, 4109, 9319