I managed to figure out how to complete this exercise but I can't find a way to make it shorter or more compact than what I've pasted below, mostly referring to the loops.
seems like its possible to index a string and go backwards but the only way that I can think of moving up or down an index is with range(x,x,x). I can't wrap my head around having it in the same line/statement, maybe I'm overthinking it.
Can anyone point me in the right direction?
def reverse(text): txt_1 =  txt_2 =  l = len(text) - 1 print l for char in text: txt_1.append(char) print txt_1 for i in range(l,-1,-1): txt_2.append(txt_1[i]) print txt_2 print "".join(txt_2) return "".join(txt_2) reverse("abcd")