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, ['6951', 'E', 's', '3359', 'a', '6111', 'U', '1977', '2763', 'l', 'z', 'w', '8825', 'y', '4357', '5585', '7603', 'i', '6491', '9395', '2135', 'l', 'n', 'H', '499', 'm', 'D']