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, ['4097', 'A', '2199', 'm', 'Y', '6065', '9761', '6491', 'N', 'i', '7003', '9077', '589', 'x', 'W', '4763', 't', '9819', '2899', '3591', '4827', '7219', 'Y', 'a', 'g', 'q', 'm']