f = open('script1.py')lines = f.readlines( )print lineslines = [line.rstrip( ) for line in lines]print lines