greenflame wrote: > Thank you all for your replies. The only thing is I do not understand > how the code is working. The following are more particular questions.
Actually, these are statements, not questions. But anyways: > Travis: Iam sorry, but I do not know what list comprehension is. > Roberto: I do not understand the first half of the last line of your > code. That's what a list comprehension is. > Also thank you for also teaching me to use '+' to append one list > to another. This will be very useful for me. > Christoph: I do not undertand the map method. There is documentation on map() about halfway down this page: http://docs.python.org/lib/built-in-funcs.html Here's a tutorial which you should read: http://docs.python.org/tut/tut.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list