DEV Community

siddharth shukla
siddharth shukla

Posted on

Python Interview Questions & Answers

1) What is Python? What are the advantages of utilizing Python?

Python is a programming language with objects, modules, strings, exemptions and programmed memory the executives. The advantages of pythons are that it is straightforward and simple, versatile, extensible, form in information structure and it is open-source.

2) What is PEP 8?

PEP 8 has emerged as the style guide that most projects adhere to it promotes a very readable and eye-pleasing coding style.

3) What is pickling and unpickling?

Pickling – is the process whereby a Python object hierarchy is converted into a string.

Unpickling – is the inverse operation, whereby a string is converted back into an object hierarchy.

4) How Python is interpreted?

The Interpreted or compiled is not a property of the language but a property of the implementation. Python program runs directly from the source code. so, Python will fall under byte code interpreted. The .py source code is first compiled to byte code as .pyc. This byte code can be interpreted. Python source code (.py) can be compiled to different byte code also like IronPython (.Net) or Jython (JVM). There are multiple implementations of Python language. The official one is a byte code interpreted one. There are byte code JIT-compiled implementations too.

As concluding remarks, Python is neither a true compiled time nor purely interpreted language but it is called interpreted language.

Read More: https://realprogrammer.in/python-interview-questions-answers/

Top comments (1)

Collapse
 
codemouse92 profile image
Jason C. McDonald

We encourage the entire article to be published on DEV.to (if you have proper rights), with a linkback if appropriate. Otherwise, we recommend original material, such as an original commentary on the article. From the Terms of Use:

Users must make a good-faith effort to share content that is...not designed primarily for the purposes of promotion or creating backlinks. Additionally, posts must contain substantial content — they may not merely reference an external link that contains the full post.

Posts that are simply intended to encourage readers to view an external resource are discouraged.

Thank you.