Skip to content

Instantly share code, notes, and snippets.

@jrabbit
Created December 21, 2015 07:10
Show Gist options
  • Save jrabbit/d26fbb7a0aefecb73dff to your computer and use it in GitHub Desktop.
Save jrabbit/d26fbb7a0aefecb73dff to your computer and use it in GitHub Desktop.
In [9]: [x for x in combos]
Out[9]:
[('1', '2'),
('1', '3'),
('1', '4'),
('1', '5'),
('2', '3'),
('2', '4'),
('2', '5'),
('3', '4'),
('3', '5'),
('4', '5')]
In [10]: combos.next()
---------------------------------------------------------------------------
StopIteration Traceback (most recent call last)
<ipython-input-10-b2543351050f> in <module>()
----> 1 combos.next()
StopIteration:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment