Skip to content

Instantly share code, notes, and snippets.

@Donohue
Created December 6, 2018 19:28
Show Gist options
  • Save Donohue/ada1ee3063847e2e7476a32ea06d36bf to your computer and use it in GitHub Desktop.
Save Donohue/ada1ee3063847e2e7476a32ea06d36bf to your computer and use it in GitHub Desktop.
Unique set
#!usr/bin/env python
import sys
with open(sys.argv[1]) as f:
unified_set = set([])
for line in f.readlines():
unified_set.add(line.strip())
for item in unified_set:
print item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment