On 03/12/2013 13:11, Dave Angel wrote:
On Tue, 3 Dec 2013 13:55:31 +0100, Rafael Knuth <rafael.kn...@gmail.com>
wrote:
for x in range(2009, 2014):
PopularCountries = ["Brazil", "China", "France", "India", "Vietnam"]
You can zip two iterators together and iterate through the resultant
iterable of tuples.
for x, country in zip (range (2009, 2014)):
Print (x, country)
You can't zip one iterator and it's print :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor