turn file content to list or tuple : to list « File « Python Tutorial






print list(open('script1.py'))
print tuple(open('script1.py'))
print '&&'.join(open('script1.py'))

a, b, c, d = open('script1.py')

print a
print b
print c
print d








12.23.to list
12.23.1.turn file content to list or tuple