When I run my code for this section, I am finally able to get the word to print in reverse on the screen, however, I keep getting an error message that says my code fails when the word is "Python!" it returns none when it should return "!nothyP" I tested the code with "Python!" and it printed the correct string on the console. Not sure what I need to do to progress.
def reverse(text): x = len(text)-1 word = "" while x >= 0: letter = text[x] x -= 1 word = word + letter print word reverse("Python!")