Archives for the Date February 12th, 2008

Learning Python: Chapter 8

Lists can be nested without explicitly using list references.
As with strings, since both are sequences: list concatenation is done with +, repetition with *
Straight forward membership tests for lists: if element in list
The bultin function range returns as list of numbers, whereas xrange returns an object that generates numbers on demand, therefore being very efficient [...]