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.
9, ['129', '4779', 'b', '7111', '491', 'b', 'I', 'i', 'P', 'o', 'G', '563', '9785', 'Q', 'Q', '501', 'R', '2725', '5459', 'X', '833', 'E', '6205', 'E', '6209', 'T']