import a txt file into python

31

with open ("data.txt", "r") as myfile:
    data = myfile.read().splitlines()
f = open('words.txt', 'r')

Comments

Submit
0 Comments