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.
2, ['3557', 'Z', '7517', '1965', 'U', '573', '817', 'A', '5047', '9947', '3733', 'Y', 'i', '7371', 'L', '781', '4107', '7615', '7343', '3121', 'y']