I am running this program:
f = open( "animals.txt", "r")
g = f.read()
g1 = g.split(',') #turning the file into list
print g1
And I want this to come out:
['ELDEN', 'DORSEY', 'DARELL', 'BRODERICK', 'ALONSO']
Instead, I am getting this:
['"ELDEN"', '"DORSEY"', '"DARELL"', '"BRODERICK"', '"ALONSO"']
Does anyone know how to remove the inner quotes