Friday, 26 June 2020

Python Interview Questions


Python Interview Questions
A list of top frequently asked python interview questions The answers given below.

·      What is Python?
Python is a high-level object-oriented programming language with objects, modules, threads, exceptions, and automatic memory management. It is a simple yet powerful programming language. It can run equally on different platforms such as Windows, Linux, Macintosh, etc. Thus python is a portable language.
·      What is --int--?
--Int-- is a constructor in python. This constructor is automatically calling to allocate memory when a new object created in a class. All classes have the --int-- constructor.
·      What is the Python Path?
It is an environment variable. Whenever a module is imported, the python path is looking for in the presence of modules in various directions. The interpreter uses it to determine which module to load.
·      What is PEP8?
PEP 8 is a coding convention that specifies a set of guidelines, About how to write your python code more readable. PEP stands for python enhancement proposal. A PEP is an official design document providing information to the Python community, or describing a new feature for python or its processes. PEP is important for document style guidelines for python code.
·      What are Pickling and Unpickling?
Pickle module accepts any Python object and converts it into a string representation and dumps it into a file by using a dump function. This process is called pickling.

, , , ,

No comments:

Post a Comment