Skip to content

Instantly share code, notes, and snippets.

@kazimuth
Created November 29, 2018 01:28
Show Gist options
  • Save kazimuth/4ea1f5171e4982f36844eb683cf0fbaa to your computer and use it in GitHub Desktop.
Save kazimuth/4ea1f5171e4982f36844eb683cf0fbaa to your computer and use it in GitHub Desktop.
same oh
big oh
hat oh
worm oh
mood oh
oh same
big same
hat same
worm same
mood same
oh big
same big
hat big
worm big
mood big
oh hat
same hat
big hat
worm hat
mood hat
oh worm
same worm
big worm
hat worm
mood worm
oh mood
same mood
big mood
hat mood
worm mood
words = ['oh', 'same', 'big', 'hat', 'worm', 'mood']
for i, wi in enumerate(words):
for j, wj in enumerate(words):
if i != j:
print(wj, wi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment