Created
September 16, 2019 13:34
-
-
Save kenoir/538b6814e40c5708cc8790513f81de59 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def load_list(file_location, delimiter=','): | |
items = [] | |
f = open(file_location,'r') | |
for line in f: | |
items.append(line.strip().split(delimiter)[0]) | |
f.close() | |
return items |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment