Hi im trying to learn Python and have a err i can understand ,
[Call.py]
CODE:
-------------------------------------
def intro():
print "Function Works !";
------------------------------------
ERROR:
-------------------------
into();
NameError: name 'into' is not defined
[Finished]
-------------------------------
[main.py]
CODE:
-------------------------
import call
# Do Some Stuff
call();
-----------------------
ERROR:
------------------------
into();
NameError: name 'into' is not defined
-----------------------
[Finished]
You defined a function named
intro, and then tried to invoke it asinto. Choose one name and stick with it.UPDATE: if you have a function named
introin call.py, then afterimport call, you need to invoke it ascall.intro().