Explain pickling and unpickling.
Answer / chaitanya
pickle is a standard module which serializes & de-serializes a python object structure.
pickle module accepts any python object converts it into a string representation & dumps it into a file(by using dump() function) which can be used later, process is called pickling. Whereas unpickling is process of retrieving original python object from the stored string representation for use.
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between __str__ and __repr__?
What is data type set in python and how to work with it?
Explain how to make Forms in python.
Is print a function in python?
How do you programmatically know the version of python you are using?
How can I evaluate an arbitrary python expression from c?
What are python libraries? Name a few of them.
What is dataframe in python?
What is the use of negative indexes?
Differentiate between lists and tuples?
What functions or methods will you use to delete a file in python?
What is lambda in python 3?