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.
1, ['y', 'Y', 'm', '461', 'l', '1053', 'H', 'i', '801', 'Z', 'a', 'Z', 'a', '8483', 'i', '7437', '289', '8537', '9713', 's', '7677', '4995', 'R', 'Z', 'Z', 'M', '3077']