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.
6, ['a', 'X', 'r', 'z', '991', 'e', 'o', 'E', '9939', 'C', '1673', '3511', '2545', 'J', 'C', 'W', '3291', '9671', 's', 'b', 'W', '603', '9047', 'S', 'p', 'm', '1495']