Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save whalebot-helmsman/3326899d1f8019b00f63fc28883abb78 to your computer and use it in GitHub Desktop.
Save whalebot-helmsman/3326899d1f8019b00f63fc28883abb78 to your computer and use it in GitHub Desktop.
def iterate(n, m, j, k):
for i1 in range(n):
for i2 in range(m):
for i3 in range(j):
for i4 in range(k):
yield (i1, i2, i3, i4)
for record in iterate(10, 20, 30, 40):
test_it(record)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment