It should return !nohtyP but I get this weird error message: Your function fails on reverse("Python!"). It returns "cba!nohtyP" when it should return "!nohtyP". While testing the function I created a str variable called "test" and assigned abc and removed afterwards.
I checked whether the list is empty before the function is called so when printed it returns as  so I believe it is empty
result =  def reverse(text): for n in range(1,len(text)+1): result.append(text[len(text)-n]) return ''.join(result)