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, ['8781', '1951', '6265', '1669', '3991', 'b', 'E', '3969', '7187', '8531', '6959', 'U', 'c', 'r', 'e', 'h', '2149', '8179', '9085', '3407', 'H', 'C', '8427']