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.
6, ['f', 'b', 'X', '677', 'N', '6235', '4909', '9835', '1949', '8979', '7501', 'H', 'A', '4701', '8871', 'o', '3309', '7305', 'U', 'y', 'Y', 'Q', '5101', 'B', 'p']