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.
4, ['d', '1135', '8211', 'X', 'E', '6603', '7375', '4867', '779', 'E', 'e', '4305', 'W', '8765', 'b', 'D', 'Z', '5669', 'n', 'J', '9235', 'I', '6379', 'J', '9399', 'e', 'w', '6007', '8257', '965']