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, ['O', 'H', '4331', 'j', '1565', '5323', 'S', '2865', 'q', 'o', '5501', 'X', '7977', 'a', 'P', '4695', 'R', 'k', '6653', 'W', '6195', 't', 'X', 'f']