Reverse - Practice Makes Perfect
File “python”, line 13
while n > 0:
IndentationError: unindent does not match any outer indentation level
Did you create a function called reverse? Your code threw a “global name ‘reverse’ is not defined” error.
I’m really not sure why I’m getting an indentation error. I’m assuming things were updated last night and (at least for me) the indents are a bit harder to see.
input = "" while input == "": input = raw_input("Enter your text here ", ) #str(input) #print input def reverse(x): nl = [x] n = len(x) rl =  #str(nl) #return nl while n > 0: rl.append(nl[n]) n = n - 1 return rl else: str(rl) print reverse(input)