These are my code so far:
def reverse(text): if type(text) == str: for i in range(len(text)): return text[-(i+1)] print reverse('abcd')
The output from this example is only "d". I understand that "return" stops the for loop; I am pretty new to programing so I honestly don't know how to keep the "cycle" going through the entire string in this case. Thank you!