Advertisements
Advertisements
Question
Which function is used to write data in binary mode?
Options
dump
pickle
writelines
write
MCQ
Advertisements
Solution
dump
Explanation -
When the Python objects need to be put in a file, the dump () method is used.
shaalaa.com
The Pickle Module in Python
Is there an error in this question or solution?
