In Python, what is the technical purpose of the pickle module?
2026
In Python, what is the technical purpose of the pickle module?
Answer: B. To convert a Python object hierarchy into a byte stream (Serialization) so it can be saved to a file.
- A.
To compress text files to take up less disk space.
- B.
To convert a Python object hierarchy into a byte stream (Serialization) so it can be saved to a file.
- C.
To encrypt sensitive data stored in CSV files.
- D.
To convert Python code into a standalone executable file.
Attempted by 360 students.
Show answer & explanation
Correct answer: B
Loading lesson…