Definition: 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: 4, ['x', '4755', '9809', '8343', '9219', '547', 'V', '1583', 'O', 'r', '7949', 'H', 's', '8145', '4231', '9395', 's', 'F', 'b', 'O', '5543', '1603', 'i', '277', 'M', '6629', '9339', '7153', '7807', 'z']
Output:
x, 4755, 9809, 8343, 9219, 547, V, 1583, O, r, 7949, H, s, 8145, 4231, 9395, s, F, b, O, 5543, 1603, i, 277, M, 6629