I am trying to append words in the animals.txt into myList. The
opena = open('animals.txt')
aread = opena.read()
myList = 
for line in aread:
myList = ['COW', 'CHICKEN', 'DOG', 'RAT', 'MOUSE']
Im not sure why you used the split function. Instead i think the following list comprehension will help you.
f = open('animal.txt','r') myList = [line.strip() for line in f] f.close()
Hope it helps.