On 28 mai 09, at 14:55, Jani Tiainen <rede...@gmail.com> wrote: > laspal kirjoitti: >> Hi, >> I have 2 list and want to iterate as one in template. >> How can I do it. >> example-> >> list1 = [10,20,30,30] >> list2 = [aa,bb,cc,dd] > > combinedlist = ( (a[x],b[x]) for x in range(len(a)) ) >> >> Reinventing zip (or, in this precise case, itertools.izip) might not be as simple as just using them though.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---