Skip to content

Instantly share code, notes, and snippets.

@toniesteves
Created June 15, 2020 13:19
Show Gist options
  • Save toniesteves/acfb13cbb95415e25d4dc9b6ba653188 to your computer and use it in GitHub Desktop.
Save toniesteves/acfb13cbb95415e25d4dc9b6ba653188 to your computer and use it in GitHub Desktop.
items = ['Andrew Ng', 'François Chollet', 'Josh Stamer',
'Kent Beck', 'Erick Evans', 'Soumith Chintala'];
def find_all_pairs(items):
for item_a in items:
for item_b in items:
print(item_a + ' - ' + item_b)
find_all_pairs(items)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment