turn file content to list or tuple : To list : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » To list »

 

turn file content to list or tuple


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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo File
» To list