Python NameError: name is not defined
I have a python script and I am receiving the following error:
I have a python script and I am receiving the following error:
I am relatively new to python and i am experiencing some issues with namespacing. class a: def abc(self): print "haha" def test(self): abc() b = a() b.test() #throws an error of abc is not defined. cannot explain why is this so Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all … Read more
This is my code: