[Tutor] Beginner's question: Looping through variable & list simultaneously

Rafael Knuth rafael.knuth at gmail.com
Tue Dec 3 16:38:57 CET 2013


> for x, country in zip ( range (2009,2014), PopularCountries):
>     print (x, country)
>
> And yes, Rafael,  you can zip together any number of iterators this way.
>
> --
> DaveA

Thanks Dave. Got it!

Raf


More information about the Tutor mailing list