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.
4, ['5487', '6969', '7733', '2401', 'U', '4933', 'm', '973', 'i', 'j', '6569', '6757', '8325', 'B', 'k', '9861', '2587', '6295', '5663', '8175', '4495', 'n', '1275', '533', 'N', 'K']