
Now that we have looked into Why you should start learning Python in 2021 in our post #1 , we will discuss What actually is Python in this post #2 from an interview question perspective as well.
Hey there!
It doesn’t matter whether you are a Junior or a Senior developer, you will often be asked this question if you are in a Python Interview.
Let’s try to answer this…
Python is an interpreted, general purpose and high-level programming language. It is dynamically typed, object-oriented programming language which also supports functional programming.
Let’s understand a lil bit on the highlighted terms above…
The type of variables & expressions in python is decided during run time so it is called dynamically typed. In other programming languages like C/C++, Java etc we have to define the the type of each and every variables and expressions before we can run our program, so they are statically typed.
In Python, everything is an Object, whether it is a function, a number or a module. Wait a minute, You’ll ask me.. What do you mean by “Everything is an Object in Python”. It simply means that every entity (whether number or functions) has some attributes and methods. We’ll see this topic in detail in our future issues.
Also you can write your whole program in Python without even writing a class in your program.
Isn’t it strange ? That’s the beauty of Python 🐍.
You can divide your logics into functions making it fulfil the requirements of a functional programming language as well.
Python was created by Guido van Rossum, and released in 1991.
Features:
Its high-level built in data structures, combined with dynamic binding, make it very attractive for Rapid Application Development. It is also suitable for use as a scripting or glue language to connect existing components together.
Python has simple, easy to learn syntax and its design philosophy emphasises code readability and therefore reduces the cost of program maintenance. Python is often described as a “batteries included” language due to its comprehensive standard library.
It supports modules and packages, which encourages program modularity and code reuse. Since there is no compilation step, the edit-test-debug cycle is incredibly fast.
Often, programmers fall in love ❤️ with Python because of the increased productivity it provides.
If you are learning/switching to Python,ML & AI consider following me on Twitter and Website to not miss any issues/updates.
Leave a Reply