DATA FILE HANDLING - WORKSHEET SOLUTION

3 Write a Python statement to open a text file “DATA.TXT” so that new content can be added to the end of file Ans f = open(„DATA.TXT‟,‟a‟) 4 Write a Python statement to open a text file “DATA.TXT” so that existing contents can be read from file. Ans f = open(„DATA.TXT‟) 5 A file “MYDATA.TXT” is opened as ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download