[Tutor] The very first program in python

Sajjadul Islam sajjadul.islam.bd at gmail.com
Thu Nov 12 12:16:31 EST 2015


Hello

I have coded the first snippet in python  - defined a function , then I am
getting error if I try call the function from the IDLE window. The error is
:

///////////////////////////////////

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



//////////////////////////////////

print_lol is the name of the function that is declared and defined inside
the file called nester.py and IDLE is called in the same path. What is that
I am missing here ?



Thanks


More information about the Tutor mailing list