I spent too much time to solve this, but still stuck. If anyone could help me with my code, I'd be grateful.
it displays this error :
Traceback (most recent call last):
File "python", line 5, in
File "python", line 3, in reverse
TypeError: unsupported operand type(s) for -: 'int' and 'str'
Replace this line with your code. def reverse(text): for a in range(len(text)): text[a] = text[len(text)-1-a] return text print reverse("1234")