Q. Differentiate between the following:-


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

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


Answer :-

(i) The text file diary.txt is opened in read mode.
(ii) The text file diary.txt is opened in write mode.

Post a Comment

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

Previous Post Next Post