!/usr/bin/pythonimport osls=os.linesepfname = raw_input("please input file name:\n")#get filenamewhile True: if os.path.exists(fname): print ("ERROR:'%s' already exists"%fname) else: break#get file content (text)linesall=[]print("\nEnter line('.'by itself to qu...