[Tutor] running modules as scripts

2013-12-07 Thread ugajin
Thanks for your answers! Hmm! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] running modules as scripts

2013-12-05 Thread Steven D'Aprano
On Thu, Dec 05, 2013 at 01:20:05PM -0500, uga...@talktalk.net wrote: > I have some difficulty with the abovet. I succeeded after a fashion, > but only after some experiment, and I am not satisfied that all is > well. Here is the script code (as per the Python tutorial 6.1.1.): > It is saved in

[Tutor] running modules as scripts

2013-12-05 Thread ugajin
I have some difficulty with the abovet. I succeeded after a fashion, but only after some experiment, and I am not satisfied that all is well. Here is the script code (as per the Python tutorial 6.1.1.): def fib(n):# write Fibonacci series up to n a, b = 0, 1 while b < n: prin