Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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:
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
You can’t perform that action at this time.