Extracting elements over multiple lists?

JoeM josephmeiring at gmail.com
Mon Nov 7 13:01:42 EST 2011


Thanks guys, I was just looking for a one line solution instead of a
for loop if possible. Why do you consider

[x.remove(x[0]) for x in [a,b,c]]

cheating? It seems compact and elegant enough for me.



Cheers



More information about the Python-list mailing list