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, ['P', '6851', '9967', 'E', '3915', '5825', 'n', 'u', 'p', '3959', '2117', 'e', '1985', 'o', '411', '2299', '6323', '3607', '5225', '9257', 'r', 'n', '4621']