5 Oct
2005
5 Oct
'05
9:01 p.m.
Chris Beaven wrote:
It's really more a cool way to do lists than if statements :)
It's technically "list comprehension". Sort of a one-line list transform tool.
I recommend reading through some of Dive Into Python (http://diveintopython.org/) for lots more cool hands-on tips on Python programming. Chapter 3 for a good overview of the uses of Python's different data types.
Good advice. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.com