What is Python?
I'll write this blog assuming that you're a newbie in the field of Python so, I would first like to introduce what Python exactly is?
Instead of starting the blog straightway with the history of Python, data structures involved and the syntaxes, I want to discuss what actually it is, why it is required and where it is used, in order to develop a interest of the users in Python.
Starting with, what is Python? In simplest terms, Python is a 'Programming language'. This arises a new question, what is "Programming language". A programming language is a set of instructions or rules which helps the user to implement their ideas in computer or other devices like mobile, tablet etc. In other words, it helps the user to interact with computer and pass commands in order to execute them.
Programming languages came into existence in 19th century and since then world has witnessed birth of several of them. From the development of primitive languages like machine language and assembly language, to the popularity of modem languages like C, C++, Java, Python, programming language has helped the programmers to write efficient programs to automate and develop solutions to the real time problems.
Now, coming to the point, what is Python? We can that say that python is a computer programming language which can be used to create a variety of programs serving different purposes.
Why do we need Python ?
As mentioned earlier, late 20th century brought the development of popular modern languages of world like C++, Perl, Java, etc. So, what makes Python different from existing languages? Why should we use Python?
All the programming languages have certain well- defined code structure with pre-defined words and a user must ensure to follow the coding standard of chosen programming language at all times else the program will throw an error. To be straightforward, all programming languages have their advantages and disadvantages and none of them is superior to other. So the choice of programming language boils down to two things in general:
(1) The purpose to be served - one shall choose a programming language based on the application or project they are working on. for example, to build a basic website one can use HTML and CSS while to predict the weather of an area one can prefer Python.
(2) The ease of learning - for someone very new to the world of programming, one should choose a programming language with least complex syntaxes and code structure, in order to make the learning easy.
Python solves the both concerns. It is a beginner-friendly language having extremely simple code structure and syntaxes which are quite easy to read and understand even if someone is unfamiliar to programming. It uses English keywords and therefore makes it easier to understand. Let me show you an example.
Until now, I haven't introduced any syntax of Python but I believe the simplicity of code will make you understand the previous point I stated.
Let's have a look at following piece of code.