Posts

Showing posts from April, 2019

Python Interview Question-Answer

1) What is Python ? What are the benefits of using Python? Python is a programming language with objects, modules, threads, exceptions and automatic    memory management. The benefits of pythons are that it is simple and easy, portable, extensible, build-in data structure and it is an open source. 2) What is PEP 8? PEP 8 is a coding convention, a set of recommendation, about how to write your Python code more readable. 3) What is pickling and unpickling? Pickle module accepts any Python object and converts it into a string representation and dumps it into a file by using dump function, this process is called pickling. While the process of retrieving original Python objects from the stored string representation is called unpickling. 4) How Python is interpreted? Python language is an interpreted language. Python program runs directly from the source code. It converts the source code that is written by the programmer into an intermediate language, which is again translat