From today onwards I’m going to start a new category of blog posts as well, Python. From this post I’m going to give an introduction to python programming language.
WHAT IS PYTHON?
Python, is a general purpose programming language mostly used in scripting. Because of python’s heavy use in scripting roles, somebody could introduce it as a scripting language as well. Python can be used under procedural, functional and Object Oriented paradigms as well. This
shows the vast area covered by the python language. You can download python from this link for Windows, UNIX, MAC and for other OS’s,
In UNIX distributions, python is installed by default. So if you are a UNIX user, you can start coding python from right now.
WHY USE PYTHON?
Yes, there are so many programming languages in todays context such as JAVA, C, C++, C# and many more. But why one million plus users nowadays use python. Below I have listed some of the reasons why python has become popular over time.
- Software quality
- Developer productivity
- Program portability
- Supporting libraries
- Component Integration
- Easy to learn
- Platform independent
- Less number of codes
- Support Object Orientation
Here I have listed the main reasons why python has become so much popular, to come to the 10 most popular programming languages nowadays.
WHAT I CAN DO USING PYTHON?
When talking about the ability of python to change according to the problem domain, it’s awesome. Here I have listed what we can do using Python,
- Systems programming
- Internet scripting
- Component integration
- Database programming
- Rapid prototyping
- Numeric and scientific programming
- Animation movies
- Robotics and etc.
When looking at those points it seems to be python is every where.
WHO USES PYTHON?
From the above paragraph I talked about the areas where the python is heavily used. So let’s look at the giants of each field who use python,
- Google’s web search system
- you tube video sharing service
- Drop box storage service
- EVE on line gaming system
- Raspberry pi
- BitTorrent file sharing system
- Pixar movie production company
- IronPort email server
- Maya, 3D modeling application
- NASA for scientific programming and etc.
All the giant’s of each filed is using python, this shows the importance of python in today’s world.
HOW PYTHON RUNS?
When we write a python code, we called it as the source code. we can write a python code using any of your favorite text editors. After typing the code you can save it with the ‘.py‘ extension. So when we try to execute this source code first of all it will compiled in to a byte code with the extension of ‘.pyc‘. Then this byte code will be interpreted to give the output. This interpretation is happening inside the ‘Python Virtual Machine (PVM)‘.
Because of this compilation procedure before the execution, there is a performance decrease in the process of execution. This is the only drawback of python as I found. However when the first time we execute a python program it will be compiled into the byte code and it will be saved to be used for another time as well. When the second time if you execute the same program,
- If it is not updated since the last compilation
- If it uses the same version as it previously compiled
Then instead of compiling again, it will uses the previous byte code to make performance increase.
ALTERNATIVES TO PYTHON?
There are some alternatives to default python, which are more efficient and support different languages.
- CPython : This is the default one
- JPython : Python for JAVA
- IronPython : Python for .net
- Stackless : Python for concurrency
- PyPy : Improved the efficiency, speed
I hope you have got an idea about the Python programming language and are interested to start coding. Then see you soon with another post in Python. Thank You!