How to solve this?


I am not able to do this..

Replace this line with your code. 

def reverse(text):
    a = str(text)
    h = reversed(a)
    print h


you shouldn't use 'reversed' which is mentioned in the instructions. And my code is as followed:

def reverse(text):
    res = ''
    for i in range(len(text)):
        res += text[len(text)-i-1]
    return res


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