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, ['8217', '3073', '9497', 'm', '2859', '7629', 'W', 'y', 'z', 'S', 'r', '41', 'V', '3007', 'W', 'Q', '6799', 'W', '6027', 'M', '945', '7447', '3665', 'U', '5709', 'y', '8947', 'i', 'T']