Q. Differentiate between the following:


(i) f = open('diary.txt', 'r')

(ii) f = open('diary.txt', 'w')


Answer :-

(i) File has been opened in read mode with file handle f.
(ii) File has been opened in write mode with file handle f.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post