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.
3, ['M', '2101', '6489', '1697', 'L', 'N', 's', '1667', '6571', '3445', '5547', '3833', 'g', 'E', '8929', 'Q', 'U', 'S', 'w', '5897', 'C', 'c', '8419', '243', 'P', '2783', 'b', '4901', 'k', '8443']