How to solve this?


#1



https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/1/1?curriculum_id=4f89dab3d788890003000096


I am not able to do this..


Replace this line with your code. 

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


#2

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

#3

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