Re: [Tutor] The very first program in python

2015-11-15 Thread Alan Gauld
On 15/11/15 03:23, Sajjadul Islam wrote: The following suggestion is not clear to me : " If you defined your function in a separate module using IDLE you can use the run menu to run the module directly. That will in turn load it into the IDLE shell for you to use. " I assumed (incorrectly as

Re: [Tutor] The very first program in python

2015-11-15 Thread Sajjadul Islam
Hi I am on Ubuntu 15.10 and using Python 3.4. The following suggestion is not clear to me : " If you defined your function in a separate module using IDLE you can use the run menu to run the module directly. That will in turn load it into the IDLE shell for you to use. " Let me explain again

Re: [Tutor] The very first program in python

2015-11-12 Thread Alan Gauld
On 12/11/15 17:16, Sajjadul Islam wrote: Hello I have coded the first snippet in python - defined a function , Give us a clue - show us the code. getting error if I try call the function from the IDLE window. If you defined your function in a separate module using IDLE you can use the run

Re: [Tutor] The very first program in python

2015-11-12 Thread Mark Lawrence
On 12/11/2015 17:16, Sajjadul Islam wrote: 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 "", line 1, in NameError: name 'print_lol' is not

[Tutor] The very first program in python

2015-11-12 Thread Sajjadul Islam
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 "", line 1, in NameError: name 'print_lol' is not defined