Sep 8, 2020 — data = file.readlines(). 5. . 6. print data. 7. print "Your name: " data[0]. 8. . 9. # now change the 2nd line, note that you have to add a newline.
DOWNLOAD: https://tinurli.com/2f9xk6
DOWNLOAD: https://tinurli.com/2f9xk6
python-replace-specific-line-in-file
939c2ea5af
Comments