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: 13, ['2887', '3451', 'y', '8107', 'j', 'z', '7543', 'h', 'B', '8167', '1385', '9739', '3311', '5073', '5209', '8919', 'M', '1887', 'H', 'I', 'D', 'L', 'U', 'Y', '4929', '8711', 'N', '4931', 'G', '3131']
Output:
2887, 3451, y, 8107, j, z, 7543, h, B, 8167, 1385, 9739, 3311, 5073, 5209, 8919, M