Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: wishing for a 3-way loop construct
Post: RE: wishing for a 3-way loop construct

Another way would be to use zip() on two copies of the list, but shifted.  This would give you tuples of (source process, destination process), except the first one would have a source of None, and th...
cathodion Bar 16 9,714 Mar-22-2017, 02:26 PM
    Thread: wishing for a 3-way loop construct
Post: RE: wishing for a 3-way loop construct

I'm a little late with this reply, but enumerate() might be a good way to do it.  Can't post a clickable link, but it's one of the built-in functions and returns an iterable of tuples like (index, ite...
cathodion Bar 16 9,714 Mar-22-2017, 01:09 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020