7. reverse


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
Hey;
In the console, it shows me that it works.
However, its write me an error message
Any ideas?
thanx


def reverse(text):
  new = []
  for c in text:
    new.insert(0, c) 
  print new
  



#2

I figure it out. thank you!
the new code is-

‘’'python

def reverse(text):
new = []
s="";
for c in text:
new.insert(0, c)
return s.join(new)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.