Skip to content

Instantly share code, notes, and snippets.

@tuttelikz
Created January 18, 2018 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuttelikz/618493def84163df4c3e416fb2ed465b to your computer and use it in GitHub Desktop.
Save tuttelikz/618493def84163df4c3e416fb2ed465b to your computer and use it in GitHub Desktop.
This is a simple script to read labels from file
array = []
with open('train_test_data_labels.txt') as fileobj:
for line in fileobj:
for ch in line:
array.append(ch)
#print(ch)
new_list = [a for a in array if a != '\n']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment