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, ['4181', 'U', 'b', 'd', '9403', 'F', '9275', 'O', 'r', 'y', 'O', '8907', 'i', '2857', 'e', '4947', 'T', '1981', 'R', '3565', 'I', '2421', 'e', '4261', 'r']