Skip to content

Instantly share code, notes, and snippets.

@cesarkawakami
Created January 19, 2015 13:28
Show Gist options
  • Save cesarkawakami/5bac16adb5fdc6f36485 to your computer and use it in GitHub Desktop.
Save cesarkawakami/5bac16adb5fdc6f36485 to your computer and use it in GitHub Desktop.
with open("right_file.txt", "r") as f:
right_set = set(f.read().split())
with open("left_file.txt", "r") as f:
for line in f:
if line.strip() not in right_set:
print line.strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment