Reverse!


#1



https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/1/1?curriculum_id=4f89dab3d788890003000096#Traceback (most recent call last):
File "python", line 7, in
NameError: name 'text' is not defined


i was expecting that whatever string attached to text would become a number equal to n
and then inside the loop i would print each value from the last one to the first one


def reverse(text):
    n=len(text)
    for i in range(n): 
        t=n-1
        o=text[t]
        print (o)
reverse(text)


#3

@icancode911,
Please give us the FULL code you are using....


#4

@icancode911
You didn't put text in quotation marks.