jakubnowicki
3/17/2020 - 4:32 AM

Read text file without new line characters

def load_names(path):
    with open(path) as text_file:
        return text_file.read().splitlines()

names = load_names('names.txt')