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.
12, ['507', 'x', 'u', '6155', '8861', '5247', '1707', 'R', '5255', 'm', '1053', 's', 'Y', '5159', '5711', 'x', '4335', 'G', 'e', 'W', '8921', '8637', '8441', '8167', '7443', '6953', 'E']