Skip to content

Instantly share code, notes, and snippets.

@kenoir
Created September 16, 2019 13:34
Show Gist options
  • Save kenoir/538b6814e40c5708cc8790513f81de59 to your computer and use it in GitHub Desktop.
Save kenoir/538b6814e40c5708cc8790513f81de59 to your computer and use it in GitHub Desktop.
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