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, ['T', '4581', '6117', 'b', 'K', '4523', 'L', '7269', 'E', '6505', '333', '7899', '3611', 'O', '8555', 'U', 's', 'D', 'K', 'C', 'e', '9781', 'H', '9315', '4825', 'y', '4759', 'E', 'q']