Temporary variables in list comprehensions

Piet van Oostrum piet-l at pietvanoostrum.com
Tue Apr 11 09:48:38 EDT 2017


Vincent Vande Vyvre <vincent.vande.vyvre at telenet.be> writes:

> final = [(x, y+1) for x, y in zip(e, e)]
final = [(x, x+1) for x in e]
-- 
Piet van Oostrum <piet-l at pietvanoostrum.com>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]



More information about the Python-list mailing list