import a txt file into python

39

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

Comments

Submit
0 Comments