In <cf007146-3a08-44c4-bf01-d1a9253c8...@o19g2000vbk.googlegroups.com> JoeM <josephmeir...@gmail.com> writes:
> 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. I wouldn't call it cheating, but that solution does a fair bit of unneccessary work (creating a list comprehension that is never used.) -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- http://mail.python.org/mailman/listinfo/python-list