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.
15, ['i', '967', 'A', 'b', 'Y', '1111', 'x', 'J', '7495', '9355', 'p', 't', '1269', '7837', 'x', 'W', '5909', '4861', '15', '7213', 'f', 'D', '7827', '8223', 'W', 'U', '6823', '5533', '4359', 'z']