This is probably something so simple. I'm scripting something to print random lines from a file but it prints one character at a time. Here is the code.
from twython import Twython, TwythonError
import random, time
filename = open('test.txt')
line = random.choice(filename.readlines())
filename.close()
for line in line:
print line
Any help is definitely appreciated. I'm a beginner so it honestly is probably something simple.