Which of the following statement is used to open the file C:\Sample.txt in write only mode?

QuestionsCategory: Python 3Which of the following statement is used to open the file C:\Sample.txt in write only mode?
admin Staff asked 3 years ago

Answer: open(‘C:\Sample.txt’, ‘w’)