I've made a simple program that reads a file of 3 lines of text. I've split the lines and get the out put shown from the t2 variable. How do I get rid of the brackets to make it one list?
fname = 'dogD.txt'
fh = open(fname)
for line in fh:
t2 = line.strip()
t2 = t2.split()
print t2
['Here', 'is', 'a', 'big', 'brown', 'dog']
['It', 'is', 'the', 'brownest', 'dog', 'you', 'have', 'ever', 'seen']
['Always', 'wanting', 'to', 'run', 'around', 'the', 'yard']