def reverse(text): TextReverse = "" Letter = len(text) while Letter > 1: TextReverse += text[Letter] Letter -= 1 return TextReverse
Hi all thanks for looking, could someone please point me in the right direction as I am lost, I appreciate people like to just correct the code but if you could also explain why that would be splendid =)
Oops, try again. Your code looks a bit off--it threw a "string index out of range" error. Check the Hint if you need help!