Created
December 6, 2018 19:28
-
-
Save Donohue/ada1ee3063847e2e7476a32ea06d36bf to your computer and use it in GitHub Desktop.
Unique set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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