['sue\xc \xb el rico en su riqueza,''que \xc \xa cuidados le ofrece;''''sue\xc \xb el pobre que padece''su miseria su pobreza;''''sue\xc \xb el que medrar empieza,''sue\xc \xb el que afana pretende,''sue\xc \xb el que agravia ofende,'''' en el mundoen conclusi\xc \xb ,''todos sue\xc \xb an lo que son,''aunque ninguno lo entiende '''if we had typed open(path' ') new file at ch /segismundo txt would have been createdoverwriting any one in its place see below for list of all valid file readwrite modes table - python file modes mode description read-only mode write-only mode creates new file (deleting any file with the same namea append to existing file (create it if it does not existrread and write add to mode for binary filesthat is 'rbor 'wbu use universal newline mode pass by itself 'uor appended to one of the read modes like 'ruto write text to fileyou can use either the file' write or writelines methods for examplewe could create version of prof_mod py with no blank lines like soin [ ]with open('tmp txt'' 'as handlehandle writelines( for in open(pathif len( in [ ]open('tmp txt'readlines(out[ ]['sue\xc \xb el rico en su riqueza,\ ''que \xc \xa cuidados le ofrece;\ ''sue\xc \xb el pobre que padece\ ''su miseria su pobreza;\ ''sue\xc \xb el que medrar empieza,\ ''sue\xc \xb el que afana pretende,\ ''sue\xc \xb el que agravia ofende,\ '' en el mundoen conclusi\xc \xb ,\ ''todos sue\xc \xb an lo que son,\ ''aunque ninguno lo entiende \ 'see table - for many of the most commonly-used file methods files and the operating system www it-ebooks info