English

The writelines() method can write multiple lines with the help of: -

Advertisements
Advertisements

Question

The writelines() method can write multiple lines with the help of:

Options

  • iterable object

  • list

  • tuple

  • all of the above

MCQ

Solution

all of the above

Explanation:

It is critical to supply an iterable object containing strings, such as a list or tuple, to the writelines() method.

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

Englishहिंदीमराठी


      Forgot password?
Use app×