Iterate from 2nd element of a huge list

Paulo da Silva p_s_d_a_s_i_l_v_a at netcabo.pt
Wed Feb 1 02:39:38 CET 2012


Hi!

What is the best way to iterate thru a huge list having the 1st element
a different process? I.e.:

process1(mylist[0])
for el in mylist[1:]:
	process2(el)

This way mylist is almost duplicated, isn't it?

Thanks.



More information about the Python-list mailing list