with open( fileName) as fileobject: for line in fileobject: line = line.strip() lst = line.split( ”) print( " --> %s " % repr( lst))