I have been struggling with my code for Reverse exercise. Can anyone help me please?
Here is my code:
def reverse(x): revd =  x = str(x) for n in x: revd.insert(0,str(n)) print "".join(revd) reverse("Python!")
When I hit the "Save & Submit Code" button, the terminal returns "!nohtyP", which looks perfect.
However, it keeps showing this error message:
"Oops, try again. Your function fails on reverse("Python!"). It returns "None" when it should return "!nohtyP"."
Can anyone please help me figure out what went wrong with my code?