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.
10, ['J', '4825', '545', '8751', '881', 'e', '6875', 'x', 'O', '1487', 'X', '9241', '9281', 'S', 'Z', 'p', '7897', '6975', '6883', 'F', '6983', 'n']