Which out of the following module is required to be used to create a binary…
2023
Which out of the following module is required to be used to create a binary file in Python?
- A.
bin
- B.
pickle
- C.
binfile
- D.
Binary
Attempted by 2249 students.
Show answer & explanation
Correct answer: B
The pickle module is used to serialize and deserialize Python objects into binary files.