Questions on Using Python to Teach Data Structures and Algorithms

Fredrik Lundh fredrik at
Thu Sep 28 19:16:48 CEST 2006

sturlamolden wrote:

> I seem to remember that a cons joins two items, it doesn't grow a
> strait list.

"If object-2 is a list, cons can be thought of as producing a new list 
which is like it but has object-1 prepended."


More information about the Python-list mailing list