Which kid's beginners programming - Python or Forth?

Daniel Dittmar daniel.dittmar at sap.corp
Tue Jun 28 05:39:34 EDT 2005


gatti at dsdata.it wrote:
> List comprehensions, however, *are* the basic control flow; loops are
> much more verbose and they should be used only when necessary.

List comprehensions are probably a bad idea for entry level programmers:
- for and while loops are much easier to debug as you can insert print 
statements everywhere
- list comprehensions don't allow you to break complex expressions into 
several simpler ones by using local variables, everything has to happen 
in one expression

Daniel



More information about the Python-list mailing list