the goal is to reverse the string:
def reverse(text): new = '' for letter in text: which_letter = len(text) - 1 new = new + text[which_letter] which_letter = which_letter - 1 return new print reverse('Hello')
when i try to print reverse('Hello") it just prints ‘o’ five times, as if the line below doesn’t work:
which_letter = which_letter -1
shouldn’t the line result in a different letter being printed every time?