English

Which method takes string as an argument and writes it to the text file?

Advertisements
Advertisements

Question

Which method takes string as an argument and writes it to the text file?

Options

  • close()

  • write()

  • read()

  • append()

MCQ
Advertisements

Solution

write()

shaalaa.com
Writing to a Text File in Python
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×