English

Which function is used to write data in binary mode? -

Advertisements
Advertisements

Question

Which function is used to write data in binary mode?

Options

  • dump

  • pickle

  • writelines

  • write

MCQ

Solution

dump

Explanation -

When the Python objects need to be put in a file, the dump () method is used.

shaalaa.com
The Pickle Module
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×