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.
8, ['o', '9947', '3413', 'I', '7501', '7759', '2959', 'u', 'h', '8469', '5181', '195', 'C', '5007', '6683', '5097', '7683', 'U', '7081', '6153', 'b', 'v', 'N', 'D', '8967', 'y', '5089', '4355']