Does your reverse function take exactly one argument (a string)? Your code threw a “an integer is required” error.
I expect it to work, but it isn’t. It probably has something to do with the insert method, but I don’t know why.
def reverse(text): ml =  ls = list(text) for i in ls: ml.insert(, i) rev = "".join(ml) print rev return rev