Fredrik, Marc, Larry -- Thank you all for your very fast and
informative replies. I had not come across "itertools" in my search.
This group is a great resource.
Samir
--
http://mail.python.org/mailman/listinfo/python-list
Samir wrote:
Is there a way to loop or iterate through a list/tuple in such a way
that when you reach the end, you start over at the beginning? For
example, suppose I define a list "daysOfWeek" such that:
daysOfWeek = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday',
'saturda
On Tue, 22 Jul 2008 14:43:10 -0700, Samir wrote:
> Is there a way to loop or iterate through a list/tuple in such a way
> that when you reach the end, you start over at the beginning? For
> example, suppose I define a list "daysOfWeek" such that:
>
daysOfWeek = ['sunday', 'monday', 'tuesday
Samir wrote:
Is there a way to loop or iterate through a list/tuple in such a way
that when you reach the end, you start over at the beginning? For
example, suppose I define a list "daysOfWeek" such that:
daysOfWeek = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday',
'saturd
Is there a way to loop or iterate through a list/tuple in such a way
that when you reach the end, you start over at the beginning? For
example, suppose I define a list "daysOfWeek" such that:
>>> daysOfWeek = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday',
>>> 'friday', 'saturday']
If