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, ['a', '6459', 'G', 'S', '3497', 'D', '6227', '6699', 'B', '6909', '7875', '559', 'A', 'q', 't', 'c', '4099', 'l', '9633', 'H', 'h', '7151', '1507', '8145']