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.
2, ['U', '179', 'X', '5633', 'J', 'Z', 'L', 'F', '811', '6637', 'b', '7031', '7647', 'O', '9755', 'B', 'y', 'f', '9385', '6081', '157', '649', '4031', 'i', 'M', 'M', '3611']