English, asked by vinaysehrawat601, 5 months ago

4. Which of the following functions do you use to write data in the binary
format in python
?
A. write
O B. output
O
C. dump
D. send
Clear select​

Answers

Answered by prajwala200790
16

Answer:

A. write.............

Answered by letmeanswer12
2

"Option C: dump()".    

Explanation :    

The dump() is used for writing data to a binary file. It accepts two arguments 'file object' and 'file' as parameters. It returns the object model in byte mode. The dump() belongs to the pickle module.

Option A: The write() specified text to the file. Where the defined text will be inserted depends on the file mode and stream position.

Option B: The output is guided as the print() function in python which prints the message to the screen or any other legal output device.

Option D: The send() used to renew the generator and sends value that will be used to continue with the next work. The method returns the new value generated by the generator.

Similar questions