Introduction to Python
Curiosity and zeal to learn something new have probably brought you here. It doesn’t matter whether you are new to programming or switching from some other redundant or less useful language, you must be having a few very important questions in your mind. We will be answering most of them in this section.
What is Python?
Python’s official website says as under:-
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.
What can I do with Python?
Now, this is the question, where the things get interesting. Python can be used for a lot of things, but the most important and popular usage of python are:-
- Server-side web development using Django or Flask.
- Data Sciences including Machine Learning, Data Analysis & Visualisation.
- Automating the stuff also known as scripting.
I will answer this by asking another question- Why not? Go through the following reasons and decide yourself:-
- It has a very easy to learn and readable syntax. e.g. print(“Hello World”) will do exactly the same how it appears in plain English. It will print- “Hello World”.
- It is compatible with all major platforms and systems be it Windows, MacOs, Linux or Raspberry Pi.
- It has a robust standard library which has a wide range of modules which can be used out-of-the-box for many of your use-cases or can be tweaked with.
- It runs on an interpreter system and the code can be executed quickly after writing it.
- It fully supports object-oriented programming as well as functional programming.
- It is ever evolving language.
Which Python version should I learn?
Without giving any explanation I will urge you to start with the latest stable version of Python 3. At the time of writing this tutorial, the latest stable version is Python 3.7.2. You can check for the latest stable version from here.