There is an error about the result. What's wrong?


#1



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


Traceback (most recent call last):
File "python", line 1, in
File "", line 1, in
NameError: name 'asd' is not defined


When I write asd it should return dsa. I have tried it in codeskulptor. there was no problem.


Traceback (most recent call last):
  File "python", line 1, in <module>
  File "<string>", line 1, in <module>
NameError: name 'asd' is not defined


#2

Could you post you code?


#3

Can you post your code so we can help you? Although by the sounds of it you have a variable you haven't defined in your function/code. I'm just guessing...


#4

make sure when you call the function with the input that your input is in quotes. For example,
print reverse("asd")


#5

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