Practice question

Rustom Mody rustompmody at
Wed Oct 8 18:41:36 CEST 2014

On Wednesday, October 8, 2014 9:58:11 PM UTC+5:30, Skip Montanaro wrote:
> On Wed, Oct 8, 2014 at 11:14 AM, Rustom Mody  wrote:
> > So pushing beginners away from print can push them up the learning
> > curve more quickly

> Or more quickly discourage them. I still use print for all sorts of
> things. In my opinion, there is often no need for fancy loggers,
> str.format, or the write method of file-like objects. Print will often
> get you a "good enough" result faster than the other means.

Well I'm not talking of people like you!!
Nor of more sophisticated tools than print.

I am talking of the fact that an absolute basic sine qua non for
beginners is to be able to structure programs:

- breaking up a complex expression into sub-expressions
- abstracting out a sub-expression into a function with an appropriate
- inverses of the above when the current cut is sub-optimal

etc etc... what is nowadays fashionably called 'refactoring'

And for that the noob needs to learn to write return-ing function
where he currently writes a print-ing function.

More information about the Python-list mailing list