in python exercise i have to make a function to reverse a string. I implemented the following code with correct indentation.
def reverse(s): l = len(s) s1 = "" for i in range(l): s1 += s[l-i-1], return s1
i am getting error message "Does your reverse function take exactly one argument (a string)? Your code threw a "cannot concatenate 'str' and 'tuple' objects" error."
how come tuple is created?