This works, but it seems like there should be a better way.

--------------
week = ['sun','mon','tue','wed','thu','fri','sat']
for day in week[week.index('tue'):week.index('fri')]:
   print day
---------------

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to