On Jan 18, 1:07 pm, Kit <wkfung.e...@gmail.com> wrote: > Hello Everyone, I am not sure if I have posted this question in a > correct board. Can anyone please teach me: > > What is a list compression in Python? > > Would you mind give me some list compression examples? > > Thanks & really appreciate that. > Kit
It's also worth noting that from Python 3.0 on, you have also dict and set comprehensions. -- http://mail.python.org/mailman/listinfo/python-list