hello, I just started to learn python for my uni and took this course to help me improve so,
7.reverse 15.Practice Makes Perfect
I can't figure out why my code isnt working any explanation would benefit me a lot.
Oops, try again. Your function fails on reverse("Python!"). It returns "" when it should return "!nohtyP".
I expected to get it right thought.
Thanks in advance!
def reverse(text): txet = '' for c in range(len(text) -1, 0): txet = text[c] + txet return txet.