Reverse


#1



this works in the terminal but on the website.


def reverse(x):
    print x[::-1]
    
reverse('whatistheheckwrongwithyou')


#2

Hi, @laeotropic ,

From the instructions ...

You may not use reversed or [::-1] to help you with this.

Also, is your reverse function returning the result?


#3

fount a simple way!!

def reverse(text):
y=[]
for x in text:
y.insert(0,x)
return ''.join(y)

print reverse('whatiswrong')


#4

yeah, the first post works fine. it's just not following the instruction.


#6