Lorenzo wrote:

zip() in conjunction with the * operator can be used to unzip a list:

That's because zip is the inverse operation of zip. I remember someone saying that zip's typical name is transpose (like in matrix transpose).

  a == zip(*zip(*a))

<nitpick> * in argument unpacking is not an operator </nitpick>
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to